summaryrefslogtreecommitdiff
path: root/src/plugins/coreplugin/versiondialog.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@nokia.com>2010-07-30 22:16:59 +0200
committerAlessandro Portale <alessandro.portale@nokia.com>2010-07-30 22:17:14 +0200
commit3aa3c5688ff6ba7e891acd9f3d7721d2ba718376 (patch)
treec649e3f4f57dc70524677a802ff6b8c9383ff08a /src/plugins/coreplugin/versiondialog.cpp
parente55c346f039e8d4577caf4a1ee5c36fe60a35385 (diff)
downloadqt-creator-3aa3c5688ff6ba7e891acd9f3d7721d2ba718376.tar.gz
Pedantic cleanup of filename parameters for QIcon constructor
Using more *::Constants::ICON_* where it makes sense and wrapping the file names into QLatin1String where they were missing. The increased usage of the ICON constants needed a few more cross plugin includes of *constants.h, here and there. I think that it is OK, since the dependencies were alredy there icon resource wise.
Diffstat (limited to 'src/plugins/coreplugin/versiondialog.cpp')
-rw-r--r--src/plugins/coreplugin/versiondialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/coreplugin/versiondialog.cpp b/src/plugins/coreplugin/versiondialog.cpp
index e92b816272..646afccd7f 100644
--- a/src/plugins/coreplugin/versiondialog.cpp
+++ b/src/plugins/coreplugin/versiondialog.cpp
@@ -53,7 +53,7 @@ VersionDialog::VersionDialog(QWidget *parent)
{
// We need to set the window icon explicitly here since for some reason the
// application icon isn't used when the size of the dialog is fixed (at least not on X11/GNOME)
- setWindowIcon(QIcon(":/core/images/qtcreator_logo_128.png"));
+ setWindowIcon(QIcon(QLatin1String(Constants::ICON_QTLOGO_128)));
setWindowTitle(tr("About Qt Creator"));
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
@@ -104,7 +104,7 @@ VersionDialog::VersionDialog(QWidget *parent)
connect(buttonBox , SIGNAL(rejected()), this, SLOT(reject()));
QLabel *logoLabel = new QLabel;
- logoLabel->setPixmap(QPixmap(QLatin1String(":/core/images/qtcreator_logo_128.png")));
+ logoLabel->setPixmap(QPixmap(QLatin1String(Constants::ICON_QTLOGO_128)));
layout->addWidget(logoLabel , 0, 0, 1, 1);
layout->addWidget(copyRightLabel, 0, 1, 4, 4);
layout->addWidget(buttonBox, 4, 0, 1, 5);