aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/designer/settingspage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/designer/settingspage.cpp')
-rw-r--r--src/plugins/designer/settingspage.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/designer/settingspage.cpp b/src/plugins/designer/settingspage.cpp
index f038b7a4db..ce5a7b5436 100644
--- a/src/plugins/designer/settingspage.cpp
+++ b/src/plugins/designer/settingspage.cpp
@@ -39,7 +39,7 @@ SettingsPage::SettingsPage(QDesignerOptionsPageInterface *designerPage) :
Core::IOptionsPage(nullptr, false),
m_designerPage(designerPage)
{
- setId(Core::Id::fromString(m_designerPage->name()));
+ setId(Utils::Id::fromString(m_designerPage->name()));
setDisplayName(m_designerPage->name());
setCategory(Designer::Constants::SETTINGS_CATEGORY);
}
@@ -85,7 +85,7 @@ QList<Core::IOptionsPage *> SettingsPageProvider::pages() const
return FormEditorW::optionsPages();
}
-bool SettingsPageProvider::matches(const QString &searchKeyWord) const
+bool SettingsPageProvider::matches(const QRegularExpression &regex) const
{
// to avoid fully initializing designer when typing something in the options' filter edit
// we hardcode matching of UI text from the designer pages, which are taken if the designer pages
@@ -119,7 +119,7 @@ bool SettingsPageProvider::matches(const QString &searchKeyWord) const
m_keywords << Utils::stripAccelerator(QCoreApplication::translate(uitext[i].context, uitext[i].value));
}
for (const QString &key : qAsConst(m_keywords)) {
- if (key.contains(searchKeyWord, Qt::CaseInsensitive))
+ if (key.contains(regex))
return true;
}
return false;