forked from qt-creator/qt-creator
ProjectExplorer: Use constants for compile_warning.png and _error
Instead of repeating strings like ":/projectexplorer/images/compile_warning.png" all over the code, we should use constants for it. Change-Id: I91b36838d6da0a2332381e433788e796948d26db Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -190,7 +190,7 @@ DesktopQmakeRunConfigurationWidget::DesktopQmakeRunConfigurationWidget(DesktopQm
|
||||
QHBoxLayout *hl = new QHBoxLayout();
|
||||
hl->addStretch();
|
||||
m_disabledIcon = new QLabel(this);
|
||||
m_disabledIcon->setPixmap(QPixmap(QLatin1String(":/projectexplorer/images/compile_warning.png")));
|
||||
m_disabledIcon->setPixmap(QPixmap(QLatin1String(ProjectExplorer::Constants::ICON_WARNING)));
|
||||
hl->addWidget(m_disabledIcon);
|
||||
m_disabledReason = new QLabel(this);
|
||||
m_disabledReason->setVisible(false);
|
||||
|
||||
Reference in New Issue
Block a user