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:
@@ -30,6 +30,7 @@
|
||||
#include "genericlinuxdeviceconfigurationwidget.h"
|
||||
#include "ui_genericlinuxdeviceconfigurationwidget.h"
|
||||
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
#include <utils/portlist.h>
|
||||
#include <utils/fancylineedit.h>
|
||||
#include <ssh/sshconnection.h>
|
||||
@@ -179,7 +180,7 @@ void GenericLinuxDeviceConfigurationWidget::initGui()
|
||||
m_ui->machineTypeValueLabel->setText(tr("Physical Device"));
|
||||
else
|
||||
m_ui->machineTypeValueLabel->setText(tr("Emulator"));
|
||||
m_ui->portsWarningLabel->setPixmap(QPixmap(QLatin1String(":/projectexplorer/images/compile_error.png")));
|
||||
m_ui->portsWarningLabel->setPixmap(QPixmap(QLatin1String(ProjectExplorer::Constants::ICON_ERROR)));
|
||||
m_ui->portsWarningLabel->setToolTip(QLatin1String("<font color=\"red\">")
|
||||
+ tr("You will need at least one port.") + QLatin1String("</font>"));
|
||||
m_ui->keyFileLineEdit->setExpectedKind(PathChooser::File);
|
||||
|
||||
Reference in New Issue
Block a user