ChooseColorWidget::ChooseColorWidget(QString text, QColor color, QWidget *parent) :
QWidget(parent)
{
- //QGroupBox *box = new QGroupBox(text, this);
- QVBoxLayout *layout = new QVBoxLayout(this);
+ QVBoxLayout *l = new QVBoxLayout(this);
+ QGroupBox *box = new QGroupBox(text, this);
+ l->addWidget(box);
+ QVBoxLayout *layout = new QVBoxLayout(box);
m_button = new KColorButton(color, this);
ColorPickerWidget *picker = new ColorPickerWidget(this);
layout->addWidget(button);
layout->addStretch(1);
- layout->addWidget(new QLabel(i18n("Width of rect to pick color from:")));
+ layout->addWidget(new QLabel(i18n("Width of square to pick color from:")));
layout->addWidget(m_size);
}