aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2020-01-10 09:33:24 +0100
committerhjk <hjk@qt.io>2020-01-16 09:53:45 +0000
commitd43b793dd87d5c71f127341002811c2358cc4c9c (patch)
treeeae00ef99adea577889c7dc249c248be443e9888 /src/plugins/debugger
parent3d7a3b4749abad409663806cadec535fb3a041b6 (diff)
Core: Introduce a IOptionsPage::setCategoryIconPath
Less noise on the user side. Change-Id: I34dea09e8a3c8639f5a7db89b22f8b825b946395 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/debugger')
-rw-r--r--src/plugins/debugger/analyzer/analyzericons.h5
-rw-r--r--src/plugins/debugger/commonoptionspage.cpp3
2 files changed, 2 insertions, 6 deletions
diff --git a/src/plugins/debugger/analyzer/analyzericons.h b/src/plugins/debugger/analyzer/analyzericons.h
index 0720f44db54..f15c1f34b7a 100644
--- a/src/plugins/debugger/analyzer/analyzericons.h
+++ b/src/plugins/debugger/analyzer/analyzericons.h
@@ -25,13 +25,10 @@
#pragma once
-#include <utils/icon.h>
-
namespace Analyzer {
namespace Icons {
-const Utils::Icon SETTINGSCATEGORY_ANALYZER({
- {":/images/settingscategory_analyzer.png", Utils::Theme::PanelTextColorDark}}, Utils::Icon::Tint);
+const char SETTINGSCATEGORY_ANALYZER[] = ":/images/settingscategory_analyzer.png";
} // namespace Icons
} // namespace Analyzer
diff --git a/src/plugins/debugger/commonoptionspage.cpp b/src/plugins/debugger/commonoptionspage.cpp
index 7a5cb421843..2f21805d273 100644
--- a/src/plugins/debugger/commonoptionspage.cpp
+++ b/src/plugins/debugger/commonoptionspage.cpp
@@ -249,8 +249,7 @@ CommonOptionsPage::CommonOptionsPage()
setDisplayName(QCoreApplication::translate("Debugger", "General"));
setCategory(DEBUGGER_SETTINGS_CATEGORY);
setDisplayCategory(QCoreApplication::translate("Debugger", "Debugger"));
- setCategoryIcon(Icon({{":/debugger/images/settingscategory_debugger.png",
- Theme::PanelTextColorDark}}, Icon::Tint));
+ setCategoryIconPath(":/debugger/images/settingscategory_debugger.png");
setWidgetCreator([] { return new CommonOptionsPageWidget; });
}