- QGroupBox* textBox = new QGroupBox(i18n("Text"), this);
- textBox->setSizePolicy(sizePolicy);
-
- QLabel* fontLabel = new QLabel(i18n("Font:"), textBox);
- m_fontRequester = new KFontRequester(textBox);
-
- QHBoxLayout* textLayout = new QHBoxLayout(textBox);
- textLayout->addWidget(fontLabel);
- textLayout->addWidget(m_fontRequester);
+ QGroupBox* textGroup = new QGroupBox(i18nc("@title:group", "Text"), this);
+ textGroup->setSizePolicy(sizePolicy);
+
+ QLabel* fontLabel = new QLabel(i18nc("@label:listbox", "Font:"), textGroup);
+ m_fontRequester = new DolphinFontRequester(textGroup);
+ connect(m_fontRequester, SIGNAL(changed()), this, SIGNAL(changed()));
+
+ QLabel* textWidthLabel = new QLabel(i18nc("@label:listbox", "Text width:"), textGroup);
+ m_textWidthBox = new KComboBox(textGroup);
+ m_textWidthBox->addItem(i18nc("@item:inlistbox Text width", "Small"));
+ m_textWidthBox->addItem(i18nc("@item:inlistbox Text width", "Medium"));
+ m_textWidthBox->addItem(i18nc("@item:inlistbox Text width", "Large"));
+ connect(m_textWidthBox, SIGNAL(activated(int)), this, SIGNAL(changed()));
+
+ QGridLayout* textGroupLayout = new QGridLayout(textGroup);
+ textGroupLayout->addWidget(fontLabel, 0, 0, Qt::AlignRight);
+ textGroupLayout->addWidget(m_fontRequester, 0, 1);
+ textGroupLayout->addWidget(textWidthLabel, 1, 0, Qt::AlignRight);
+ textGroupLayout->addWidget(m_textWidthBox, 1, 1);