aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/todo/keyworddialog.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@theqtcompany.com>2015-10-19 12:55:13 +0200
committerAlessandro Portale <alessandro.portale@theqtcompany.com>2015-10-23 16:04:52 +0000
commitb8bdc6f669d0949292be217e84fe046ea8450e1c (patch)
treeadf7521912f2c28b3b571049938f81ce0146207e /src/plugins/todo/keyworddialog.cpp
parente6d038364fe44d96b93fa2f5e40334e7ecad13c2 (diff)
Icon refresh: First step towards the new Qt Creator themes
http://blog.qt.io/blog/author/didesous/ announced new designs/themes for Qt Creator. This patch replaces many of the existing toolbar icons with recolorizable masks for better theming support. Change-Id: I557aa485205fe2624f33724226f698c303342b40 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com> Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
Diffstat (limited to 'src/plugins/todo/keyworddialog.cpp')
-rw-r--r--src/plugins/todo/keyworddialog.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/todo/keyworddialog.cpp b/src/plugins/todo/keyworddialog.cpp
index 7110db011b6..eb9ceeb860a 100644
--- a/src/plugins/todo/keyworddialog.cpp
+++ b/src/plugins/todo/keyworddialog.cpp
@@ -36,6 +36,7 @@
#include "lineparser.h"
#include <coreplugin/coreconstants.h>
+#include <utils/themehelper.h>
#include <QColorDialog>
@@ -89,19 +90,19 @@ void KeywordDialog::setupListWidget(const QString &selectedIcon)
ui->listWidget->setViewMode(QListWidget::IconMode);
ui->listWidget->setDragEnabled(false);
const QString infoIconName = QLatin1String(Core::Constants::ICON_INFO);
- QListWidgetItem *item = new QListWidgetItem(QIcon(infoIconName),
+ QListWidgetItem *item = new QListWidgetItem(Utils::ThemeHelper::themedIcon(infoIconName),
QLatin1String("information"));
item->setData(Qt::UserRole, infoIconName);
ui->listWidget->addItem(item);
const QString warningIconName = QLatin1String(Core::Constants::ICON_WARNING);
- item = new QListWidgetItem(QIcon(warningIconName),
+ item = new QListWidgetItem(Utils::ThemeHelper::themedIcon(warningIconName),
QLatin1String("warning"));
item->setData(Qt::UserRole, warningIconName);
ui->listWidget->addItem(item);
const QString errorIconName = QLatin1String(Core::Constants::ICON_ERROR);
- item = new QListWidgetItem(QIcon(errorIconName),
+ item = new QListWidgetItem(Utils::ThemeHelper::themedIcon(errorIconName),
QLatin1String("error"));
item->setData(Qt::UserRole, errorIconName);
ui->listWidget->addItem(item);