summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatgic78 <matgic78@gmail.com>2010-04-10 11:38:47 +0200
committermatgic78 <matgic78@gmail.com>2010-04-10 11:38:47 +0200
commitc94d51b54d9e69ba03e10c91649f366e0102ee7e (patch)
treec38ad8cded53e548d9e3451cf1f52071fcb9f2f1
parentFix focus problems and trim search strings (fix encodings problems, step 1) (diff)
downloadrekonq-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
-rw-r--r--src/cleardata.ui36
-rw-r--r--src/mainwindow.cpp6
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>&lt;h3&gt;Clear the following items:&lt;/h3&gt;</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;