forked from qt-creator/qt-creator
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:
@@ -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.
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user