forked from qt-creator/qt-creator
Polish the settings dialog.
Add a title label to the pages. Use QGroupBoxes throughout. Extend SavedAction to work with checkable QGroupBoxes. Polish UI files, use common layout for VCS plugins. Performance: Apply only visited settings pages. Add search keywords. Task-number: QTCREATOR-26
This commit is contained in:
@@ -133,6 +133,7 @@ public:
|
||||
Ui::FontSettingsPage ui;
|
||||
SchemeListModel *m_schemeListModel;
|
||||
bool m_refreshingSchemeList;
|
||||
QString m_searchKeywords;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
@@ -367,6 +368,8 @@ QWidget *FontSettingsPage::createPage(QWidget *parent)
|
||||
updatePointSizes();
|
||||
refreshColorSchemeList();
|
||||
d_ptr->m_lastValue = d_ptr->m_value;
|
||||
if (d_ptr->m_searchKeywords.isEmpty())
|
||||
d_ptr->m_searchKeywords = d_ptr->ui.fontGroupBox->title() + QLatin1Char(' ') + d_ptr->ui.colorSchemeGroupBox->title();
|
||||
return w;
|
||||
}
|
||||
|
||||
@@ -618,3 +621,8 @@ const FontSettings &FontSettingsPage::fontSettings() const
|
||||
{
|
||||
return d_ptr->m_value;
|
||||
}
|
||||
|
||||
bool FontSettingsPage::matches(const QString &s) const
|
||||
{
|
||||
return d_ptr->m_searchKeywords.contains(s, Qt::CaseInsensitive);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user