diff options
-rw-r--r-- | src/settings/adblockwidget.cpp | 2 | ||||
-rw-r--r-- | src/settings/settings_adblock.ui | 15 |
2 files changed, 15 insertions, 2 deletions
diff --git a/src/settings/adblockwidget.cpp b/src/settings/adblockwidget.cpp index a703fe09..3a87376a 100644 --- a/src/settings/adblockwidget.cpp +++ b/src/settings/adblockwidget.cpp @@ -64,6 +64,8 @@ AdBlockWidget::AdBlockWidget(QWidget *parent) load(); + spinBox->setSuffix(ki18np(" day", " days")); + // emit changed signal connect(insertButton, SIGNAL(clicked()), this, SLOT(hasChanged())); connect(removeButton, SIGNAL(clicked()), this, SLOT(hasChanged())); diff --git a/src/settings/settings_adblock.ui b/src/settings/settings_adblock.ui index 5d088143..1264104f 100644 --- a/src/settings/settings_adblock.ui +++ b/src/settings/settings_adblock.ui @@ -66,9 +66,15 @@ </widget> </item> <item> - <widget class="QSpinBox" name="spinBox"> + <widget class="KIntSpinBox" name="spinBox"> + <property name="minimumSize"> + <size> + <width>120</width> + <height>0</height> + </size> + </property> <property name="suffix"> - <string> days</string> + <string/> </property> <property name="value"> <number>7</number> @@ -161,6 +167,11 @@ <header>klistwidget.h</header> </customwidget> <customwidget> + <class>KIntSpinBox</class> + <extends>QSpinBox</extends> + <header>knuminput.h</header> + </customwidget> + <customwidget> <class>KLineEdit</class> <extends>QLineEdit</extends> <header>klineedit.h</header> |