forked from qt-creator/qt-creator
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.
This commit is contained in:
@@ -76,13 +76,13 @@ QIcon iconForId(const QString &id) {
|
||||
if (id == QLatin1String(Constants::DESKTOP_TARGET_ID))
|
||||
return QIcon(qApp->style()->standardIcon(QStyle::SP_ComputerIcon));
|
||||
if (id == QLatin1String(Constants::S60_EMULATOR_TARGET_ID))
|
||||
return QIcon(":/projectexplorer/images/SymbianEmulator.png");
|
||||
return QIcon(QLatin1String(":/projectexplorer/images/SymbianEmulator.png"));
|
||||
if (id == QLatin1String(Constants::S60_DEVICE_TARGET_ID))
|
||||
return QIcon(":/projectexplorer/images/SymbianDevice.png");
|
||||
return QIcon(QLatin1String(":/projectexplorer/images/SymbianDevice.png"));
|
||||
if (id == QLatin1String(Constants::MAEMO_DEVICE_TARGET_ID))
|
||||
return QIcon(":/projectexplorer/images/MaemoDevice.png");
|
||||
return QIcon(QLatin1String(":/projectexplorer/images/MaemoDevice.png"));
|
||||
if (id == QLatin1String(Constants::QT_SIMULATOR_TARGET_ID))
|
||||
return QIcon(":/projectexplorer/images/SymbianEmulator.png");
|
||||
return QIcon(QLatin1String(":/projectexplorer/images/SymbianEmulator.png"));
|
||||
return QIcon();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user