summaryrefslogtreecommitdiff
path: root/src/plugins/designer
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2018-04-23 18:02:55 +0200
committerAlessandro Portale <alessandro.portale@qt.io>2018-04-24 07:53:34 +0000
commit3d42f98017f040f92dc7b6f8295e6f8ad74aa8fd (patch)
tree6753e30252fe27a6af4ffae41ffd95c15b9de218 /src/plugins/designer
parentce84f64d1bc4bcd95aa9d0418b2fabb820f3372c (diff)
downloadqt-creator-3d42f98017f040f92dc7b6f8295e6f8ad74aa8fd.tar.gz
Core: Make IOptionsPageProvider::categoryIcon a Utils::Icon
...just like it is with IOptionsPage Change-Id: I033891f1a908be24b05103cb13a4ef628994d2a7 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/designer')
-rw-r--r--src/plugins/designer/designerconstants.h1
-rw-r--r--src/plugins/designer/settingspage.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/designer/designerconstants.h b/src/plugins/designer/designerconstants.h
index a097a991d0..62497bf945 100644
--- a/src/plugins/designer/designerconstants.h
+++ b/src/plugins/designer/designerconstants.h
@@ -36,7 +36,6 @@ const char C_DESIGNER_XML_EDITOR[] = "Designer Xml Editor";
const char C_DESIGNER_XML_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("Designer", "Form Editor");
const char SETTINGS_CATEGORY[] = "P.Designer";
-const char SETTINGS_CATEGORY_ICON[] = ":/core/images/category_design.png";
const char SETTINGS_TR_CATEGORY[] = QT_TRANSLATE_NOOP("Designer", "Designer");
// Context
diff --git a/src/plugins/designer/settingspage.cpp b/src/plugins/designer/settingspage.cpp
index 15275ce863..078c8e0bda 100644
--- a/src/plugins/designer/settingspage.cpp
+++ b/src/plugins/designer/settingspage.cpp
@@ -72,7 +72,7 @@ SettingsPageProvider::SettingsPageProvider(QObject *parent)
setCategory(Designer::Constants::SETTINGS_CATEGORY);
setDisplayCategory(QCoreApplication::translate("Designer",
Designer::Constants::SETTINGS_TR_CATEGORY));
- setCategoryIcon(Designer::Constants::SETTINGS_CATEGORY_ICON);
+ setCategoryIcon(Utils::Icon(":/core/images/category_design.png"));
}
QList<Core::IOptionsPage *> SettingsPageProvider::pages() const