summaryrefslogtreecommitdiff
path: root/src/plugins/help/helpmode.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@theqtcompany.com>2015-11-11 19:26:58 +0100
committerAlessandro Portale <alessandro.portale@theqtcompany.com>2015-12-03 11:30:50 +0000
commit37c1823974bb11e59c820804df886c67e18deed0 (patch)
treed39f175c06868cef2251538cf6822df65fcc304d /src/plugins/help/helpmode.cpp
parent0f50c41d059b5bffb455b76b096de92c6a79dbff (diff)
downloadqt-creator-37c1823974bb11e59c820804df886c67e18deed0.tar.gz
Flat and themeable side bar icons
This patch adds flat side bar icons according to http://blog.qt.io/blog/author/didesous/ The flat icons are supposed to be opt-in, via the theme flag "FlatSideBarIcons=true". It is false by default for the default theme for now. Change-Id: I1cbe69d4e138d5d23c0172a374933ac7a4ce8a5b Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
Diffstat (limited to 'src/plugins/help/helpmode.cpp')
-rw-r--r--src/plugins/help/helpmode.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/help/helpmode.cpp b/src/plugins/help/helpmode.cpp
index 98042ce8d8..ab53166bc5 100644
--- a/src/plugins/help/helpmode.cpp
+++ b/src/plugins/help/helpmode.cpp
@@ -30,6 +30,7 @@
#include "helpmode.h"
#include "helpconstants.h"
+#include "helpicons.h"
#include <QCoreApplication>
@@ -41,7 +42,8 @@ HelpMode::HelpMode(QObject *parent)
{
setObjectName(QLatin1String("HelpMode"));
setContext(Core::Context(Constants::C_MODE_HELP));
- setIcon(QIcon(QLatin1String(":/help/images/mode_help.png")));
+ setIcon(Utils::Icon::modeIcon(Icons::MODE_HELP_CLASSIC,
+ Icons::MODE_HELP_FLAT, Icons::MODE_HELP_FLAT_ACTIVE));
setDisplayName(QCoreApplication::translate("Help::Internal::HelpMode", "Help"));
setPriority(Constants::P_MODE_HELP);
setId(Constants::ID_MODE_HELP);