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:
@@ -110,7 +110,7 @@ EditorToolBar::EditorToolBar(QWidget *parent) :
|
||||
m_lockButton->setVisible(false);
|
||||
|
||||
m_closeButton->setAutoRaise(true);
|
||||
m_closeButton->setIcon(QIcon(":/core/images/closebutton.png"));
|
||||
m_closeButton->setIcon(QIcon(QLatin1String(Constants::ICON_CLOSE)));
|
||||
m_closeButton->setProperty("type", QLatin1String("dockbutton"));
|
||||
m_closeButton->setEnabled(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user