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:
@@ -38,6 +38,7 @@
|
||||
#include "qt4projectmanagerconstants.h"
|
||||
#include "qtoutputformatter.h"
|
||||
|
||||
#include <coreplugin/coreconstants.h>
|
||||
#include <coreplugin/icore.h>
|
||||
#include <coreplugin/messagemanager.h>
|
||||
#include <coreplugin/variablemanager.h>
|
||||
@@ -215,7 +216,7 @@ Qt4RunConfigurationWidget::Qt4RunConfigurationWidget(Qt4RunConfiguration *qt4Run
|
||||
|
||||
QToolButton *resetButton = new QToolButton(this);
|
||||
resetButton->setToolTip(tr("Reset to default"));
|
||||
resetButton->setIcon(QIcon(":/core/images/reset.png"));
|
||||
resetButton->setIcon(QIcon(QLatin1String(Core::Constants::ICON_RESET)));
|
||||
|
||||
QHBoxLayout *boxlayout = new QHBoxLayout();
|
||||
boxlayout->setMargin(0);
|
||||
|
||||
Reference in New Issue
Block a user