diff options
author | matgic78 <matgic78@gmail.com> | 2010-04-10 11:38:47 +0200 |
---|---|---|
committer | matgic78 <matgic78@gmail.com> | 2010-04-10 11:38:47 +0200 |
commit | c94d51b54d9e69ba03e10c91649f366e0102ee7e (patch) | |
tree | c38ad8cded53e548d9e3451cf1f52071fcb9f2f1 /src | |
parent | Fix focus problems and trim search strings (fix encodings problems, step 1) (diff) | |
download | rekonq-c94d51b54d9e69ba03e10c91649f366e0102ee7e.tar.xz |
Improved "Clear Private Data" dialog appearance
Not a Qt::sheet : use a gradient for background
Add Caption
Descriptive button text
<h3> "clear the following items"
Spacers
Diffstat (limited to 'src')
-rw-r--r-- | src/cleardata.ui | 36 | ||||
-rw-r--r-- | src/mainwindow.cpp | 6 |
2 files changed, 37 insertions, 5 deletions
diff --git a/src/cleardata.ui b/src/cleardata.ui index 7de7543f..effb2d7e 100644 --- a/src/cleardata.ui +++ b/src/cleardata.ui @@ -2,12 +2,15 @@ <ui version="4.0"> <class>ClearDataWidget</class> <widget class="QWidget" name="ClearDataWidget"> + <property name="windowModality"> + <enum>Qt::WindowModal</enum> + </property> <property name="geometry"> <rect> <x>0</x> <y>0</y> - <width>260</width> - <height>208</height> + <width>245</width> + <height>226</height> </rect> </property> <property name="windowTitle"> @@ -16,12 +19,34 @@ <layout class="QVBoxLayout" name="verticalLayout"> <item> <widget class="QLabel" name="label"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> <property name="text"> - <string>Clear the following items:</string> + <string><h3>Clear the following items:</h3></string> </property> </widget> </item> <item> + <spacer name="verticalSpacer_2"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>10</height> + </size> + </property> + </spacer> + </item> + <item> <widget class="QCheckBox" name="clearHistory"> <property name="text"> <string>Visited pages history</string> @@ -86,10 +111,13 @@ <property name="orientation"> <enum>Qt::Vertical</enum> </property> + <property name="sizeType"> + <enum>QSizePolicy::MinimumExpanding</enum> + </property> <property name="sizeHint" stdset="0"> <size> <width>20</width> - <height>40</height> + <height>15</height> </size> </property> </spacer> diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index c49f8e7c..c8794664 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1169,8 +1169,12 @@ void MainWindow::notifyMessage(const QString &msg, Rekonq::Notify status) void MainWindow::clearPrivateData() { - QWeakPointer<KDialog> dialog = new KDialog(this, Qt::Sheet); + QWeakPointer<KDialog> dialog = new KDialog(this); + dialog.data()->setCaption(i18n("Clear Private Data")); dialog.data()->setButtons(KDialog::Ok | KDialog::Cancel); + + dialog.data()->button(KDialog::Ok)->setIcon(KIcon("edit-clear")); + dialog.data()->button(KDialog::Ok)->setText(i18n("Clear")); Ui::ClearDataWidget clearWidget; QWidget widget; |