Settings dialog: Polish "reset filter" button.

Add a tool tip to the button and give it our standard icon.

Reviewed-by: Friedemann Kleint
This commit is contained in:
ck
2009-11-26 15:38:38 +01:00
parent f0b75092c5
commit d790712bdc
2 changed files with 4 additions and 1 deletions

View File

@@ -262,7 +262,7 @@ SettingsDialog::SettingsDialog(QWidget *parent, const QString &categoryId,
splitter->setStretchFactor(splitter->indexOf(pageTree), 0); splitter->setStretchFactor(splitter->indexOf(pageTree), 0);
splitter->setStretchFactor(splitter->indexOf(layoutWidget), 1); splitter->setStretchFactor(splitter->indexOf(layoutWidget), 1);
filterClearButton->setIcon(QIcon(QLatin1String(":/debugger/images/delete.png"))); filterClearButton->setIcon(QIcon(QLatin1String(":/core/images/reset.png")));
connect(filterClearButton, SIGNAL(clicked()), filterLineEdit, SLOT(clear())); connect(filterClearButton, SIGNAL(clicked()), filterLineEdit, SLOT(clear()));
// The order of the slot connection matters here, the filter slot // The order of the slot connection matters here, the filter slot
// opens the matching page after the model has filtered. // opens the matching page after the model has filtered.

View File

@@ -28,6 +28,9 @@
</item> </item>
<item> <item>
<widget class="QToolButton" name="filterClearButton"> <widget class="QToolButton" name="filterClearButton">
<property name="toolTip">
<string>Clear filter</string>
</property>
<property name="text"> <property name="text">
<string>Clear</string> <string>Clear</string>
</property> </property>