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:
@@ -180,19 +180,19 @@ void BuildStepsPage::addBuildStepWidget(int pos, BuildStep *step)
|
||||
s.upButton->setAutoRaise(true);
|
||||
s.upButton->setToolTip(tr("Move Up"));
|
||||
s.upButton->setFixedSize(buttonSize);
|
||||
s.upButton->setIcon(QIcon(":/core/images/darkarrowup.png"));
|
||||
s.upButton->setIcon(QIcon(QLatin1String(":/core/images/darkarrowup.png")));
|
||||
|
||||
s.downButton = new QToolButton(toolWidget);
|
||||
s.downButton->setAutoRaise(true);
|
||||
s.downButton->setToolTip(tr("Move Down"));
|
||||
s.downButton->setFixedSize(buttonSize);
|
||||
s.downButton->setIcon(QIcon(":/core/images/darkarrowdown.png"));
|
||||
s.downButton->setIcon(QIcon(QLatin1String(":/core/images/darkarrowdown.png")));
|
||||
|
||||
s.removeButton = new QToolButton(toolWidget);
|
||||
s.removeButton->setAutoRaise(true);
|
||||
s.removeButton->setToolTip(tr("Remove Item"));
|
||||
s.removeButton->setFixedSize(buttonSize);
|
||||
s.removeButton->setIcon(QIcon(":/core/images/darkclose.png"));
|
||||
s.removeButton->setIcon(QIcon(QLatin1String(":/core/images/darkclose.png")));
|
||||
|
||||
toolWidget->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding);
|
||||
QHBoxLayout *hbox = new QHBoxLayout();
|
||||
|
||||
Reference in New Issue
Block a user