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:
@@ -482,7 +482,7 @@ Core::NavigationView FolderNavigationWidgetFactory::createWidget()
|
||||
FolderNavigationWidget *ptw = new FolderNavigationWidget;
|
||||
n.widget = ptw;
|
||||
QToolButton *toggleSync = new QToolButton;
|
||||
toggleSync->setIcon(QIcon(QLatin1String(":/core/images/linkicon.png")));
|
||||
toggleSync->setIcon(QIcon(QLatin1String(Core::Constants::ICON_LINK)));
|
||||
toggleSync->setCheckable(true);
|
||||
toggleSync->setChecked(ptw->autoSynchronization());
|
||||
toggleSync->setToolTip(tr("Synchronize with Editor"));
|
||||
|
||||
Reference in New Issue
Block a user