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:
@@ -530,7 +530,7 @@ void HelpPlugin::createRightPaneContextViewer()
|
||||
hboxLayout->addStretch();
|
||||
|
||||
QToolButton *closeButton = new QToolButton();
|
||||
closeButton->setIcon(QIcon(":/core/images/closebutton.png"));
|
||||
closeButton->setIcon(QIcon(QLatin1String(Core::Constants::ICON_CLOSE)));
|
||||
connect(closeButton, SIGNAL(clicked()), this, SLOT(slotHideRightPane()));
|
||||
|
||||
// close button to the right
|
||||
@@ -866,7 +866,7 @@ QToolBar *HelpPlugin::createToolBar()
|
||||
SLOT(updateSideBarSource()));
|
||||
|
||||
m_closeButton = new QToolButton();
|
||||
m_closeButton->setIcon(QIcon(":/core/images/closebutton.png"));
|
||||
m_closeButton->setIcon(QIcon(QLatin1String(Core::Constants::ICON_CLOSE)));
|
||||
m_closeButton->setToolTip(tr("Close current Page"));
|
||||
connect(m_closeButton, SIGNAL(clicked()), &OpenPagesManager::instance(),
|
||||
SLOT(closeCurrentPage()));
|
||||
|
||||
Reference in New Issue
Block a user