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:
@@ -165,7 +165,7 @@ void AndroidManifestEditorWidget::initializePage()
|
||||
m_packageNameWarning->setVisible(false);
|
||||
|
||||
m_packageNameWarningIcon = new QLabel;
|
||||
m_packageNameWarningIcon->setPixmap(QPixmap(QString::fromUtf8(":/projectexplorer/images/compile_warning.png")));
|
||||
m_packageNameWarningIcon->setPixmap(QPixmap(QLatin1String(ProjectExplorer::Constants::ICON_WARNING)));
|
||||
m_packageNameWarningIcon->setVisible(false);
|
||||
m_packageNameWarningIcon->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
|
||||
#include <utils/detailswidget.h>
|
||||
#include <coreplugin/icore.h>
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
#include <projectexplorer/kitmanager.h>
|
||||
#include <projectexplorer/kit.h>
|
||||
#include <projectexplorer/kitinformation.h>
|
||||
@@ -91,7 +92,7 @@ AndroidPotentialKitWidget::AndroidPotentialKitWidget(QWidget *parent)
|
||||
: Utils::DetailsWidget(parent)
|
||||
{
|
||||
setSummaryText(QLatin1String("<b>Android has not been configured. Create Android kits.</b>"));
|
||||
setIcon(QIcon(QLatin1String(":/projectexplorer/images/compile_warning.png")));
|
||||
setIcon(QIcon(QLatin1String(ProjectExplorer::Constants::ICON_WARNING)));
|
||||
//detailsWidget->setState(Utils::DetailsWidget::NoSummary);
|
||||
QWidget *mainWidget = new QWidget(this);
|
||||
setWidget(mainWidget);
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
|
||||
#include "avddialog.h"
|
||||
#include "androidconfigurations.h"
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
|
||||
#include <QMessageBox>
|
||||
|
||||
@@ -52,7 +53,7 @@ AvdDialog::AvdDialog(int minApiLevel, const QString &targetArch, const AndroidCo
|
||||
QRegExp rx(QLatin1String("\\S+"));
|
||||
QRegExpValidator v(rx, 0);
|
||||
m_avdDialog.nameLineEdit->setValidator(&v);
|
||||
m_avdDialog.warningIcon->setPixmap(QPixmap(QLatin1String(":/projectexplorer/images/compile_warning.png")));
|
||||
m_avdDialog.warningIcon->setPixmap(QPixmap(QLatin1String(ProjectExplorer::Constants::ICON_WARNING)));
|
||||
|
||||
updateApiLevelComboBox();
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include <projectexplorer/target.h>
|
||||
#include <qmakeprojectmanager/qmakeproject.h>
|
||||
#include <qmakeprojectmanager/qmakenodes.h>
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
#include <proparser/prowriter.h>
|
||||
#include <QComboBox>
|
||||
#include <QFormLayout>
|
||||
@@ -110,7 +111,7 @@ ChooseDirectoryPage::ChooseDirectoryPage(CreateAndroidManifestWizard *wizard)
|
||||
m_sourceDirectoryWarning->setWordWrap(true);
|
||||
m_warningIcon = new QLabel(this);
|
||||
m_warningIcon->setVisible(false);
|
||||
m_warningIcon->setPixmap(QPixmap(QLatin1String(":/projectexplorer/images/compile_error.png")));
|
||||
m_warningIcon->setPixmap(QPixmap(QLatin1String(ProjectExplorer::Constants::ICON_ERROR)));
|
||||
m_warningIcon->setWordWrap(true);
|
||||
m_warningIcon->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user