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:
@@ -99,9 +99,9 @@ GettingStartedWelcomePageWidget::GettingStartedWelcomePageWidget(QWidget *parent
|
||||
connect(ui->createNewProjectButton, SIGNAL(clicked()), this, SLOT(slotCreateNewProject()));
|
||||
|
||||
ui->createNewProjectButton->setIcon(
|
||||
QIcon::fromTheme("document-new", ui->createNewProjectButton->icon()));
|
||||
QIcon::fromTheme(QLatin1String("document-new"), ui->createNewProjectButton->icon()));
|
||||
ui->openProjectButton->setIcon(
|
||||
QIcon::fromTheme("document-open", ui->openProjectButton->icon()));
|
||||
QIcon::fromTheme(QLatin1String("document-open"), ui->openProjectButton->icon()));
|
||||
QTimer::singleShot(0, this, SLOT(slotSetPrivateQmlExamples()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user