summaryrefslogtreecommitdiff
path: root/src/plugins/diffeditor/diffview.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/diffeditor/diffview.cpp
parente6d038364fe44d96b93fa2f5e40334e7ecad13c2 (diff)
downloadqt-creator-b8bdc6f669d0949292be217e84fe046ea8450e1c.tar.gz
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/diffeditor/diffview.cpp')
-rw-r--r--src/plugins/diffeditor/diffview.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/diffeditor/diffview.cpp b/src/plugins/diffeditor/diffview.cpp
index 98e75f2ce2..bb70085c90 100644
--- a/src/plugins/diffeditor/diffview.cpp
+++ b/src/plugins/diffeditor/diffview.cpp
@@ -34,6 +34,7 @@
#include "sidebysidediffeditorwidget.h"
#include <utils/qtcassert.h>
+#include <utils/themehelper.h>
#include <QCoreApplication>
@@ -96,7 +97,8 @@ void IDiffView::setSyncToolTip(const QString &text)
UnifiedView::UnifiedView() : m_widget(0)
{
setId(UNIFIED_VIEW_ID);
- setIcon(QIcon(QLatin1String(":/diffeditor/images/unifieddiff.png")));
+ setIcon(Utils::ThemeHelper::themedIcon(
+ QLatin1String(":/diffeditor/images/unifieddiff.png")));
setToolTip(QCoreApplication::translate("DiffEditor::UnifiedView", "Switch to Unified Diff Editor"));
}
@@ -152,7 +154,8 @@ void UnifiedView::setSync(bool sync)
SideBySideView::SideBySideView() : m_widget(0)
{
setId(SIDE_BY_SIDE_VIEW_ID);
- setIcon(QIcon(QLatin1String(":/diffeditor/images/sidebysidediff.png")));
+ setIcon(Utils::ThemeHelper::themedIcon(
+ QLatin1String(":/diffeditor/images/sidebysidediff.png")));
setToolTip(QCoreApplication::translate("DiffEditor::SideBySideView",
"Switch to Side By Side Diff Editor"));
setSupportsSync(true);