diff options
author | Alessandro Portale <alessandro.portale@theqtcompany.com> | 2015-10-19 12:55:13 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@theqtcompany.com> | 2015-10-23 16:04:52 +0000 |
commit | b8bdc6f669d0949292be217e84fe046ea8450e1c (patch) | |
tree | adf7521912f2c28b3b571049938f81ce0146207e /src/plugins/git/gitsubmiteditorwidget.cpp | |
parent | e6d038364fe44d96b93fa2f5e40334e7ecad13c2 (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/git/gitsubmiteditorwidget.cpp')
-rw-r--r-- | src/plugins/git/gitsubmiteditorwidget.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/git/gitsubmiteditorwidget.cpp b/src/plugins/git/gitsubmiteditorwidget.cpp index 29750c3554..e0a33d07c0 100644 --- a/src/plugins/git/gitsubmiteditorwidget.cpp +++ b/src/plugins/git/gitsubmiteditorwidget.cpp @@ -33,7 +33,9 @@ #include "githighlighters.h" #include "logchangedialog.h" +#include <coreplugin/coreconstants.h> #include <utils/completingtextedit.h> +#include <utils/themehelper.h> #include <QRegExpValidator> #include <QTextEdit> @@ -59,7 +61,11 @@ GitSubmitEditorWidget::GitSubmitEditorWidget() : new GitSubmitHighlighter(descriptionEdit()); m_emailValidator = new QRegExpValidator(QRegExp(QLatin1String("[^@ ]+@[^@ ]+\\.[a-zA-Z]+")), this); + const QPixmap error = + Utils::ThemeHelper::themedIconPixmap(QLatin1String(Core::Constants::ICON_ERROR)); + m_gitSubmitPanelUi.invalidAuthorLabel->setPixmap(error); m_gitSubmitPanelUi.invalidEmailLabel->setToolTip(tr("Provide a valid email to commit.")); + m_gitSubmitPanelUi.invalidEmailLabel->setPixmap(error); connect(m_gitSubmitPanelUi.authorLineEdit, &QLineEdit::textChanged, this, &GitSubmitEditorWidget::authorInformationChanged); |