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:
@@ -1,4 +1,5 @@
|
||||
#include "outlinefactory.h"
|
||||
#include <coreplugin/coreconstants.h>
|
||||
#include <coreplugin/icore.h>
|
||||
#include <coreplugin/editormanager/editormanager.h>
|
||||
#include <coreplugin/editormanager/ieditor.h>
|
||||
@@ -27,14 +28,14 @@ OutlineWidgetStack::OutlineWidgetStack(OutlineFactory *factory) :
|
||||
addWidget(label);
|
||||
|
||||
m_toggleSync = new QToolButton;
|
||||
m_toggleSync->setIcon(QIcon(":/core/images/linkicon.png"));
|
||||
m_toggleSync->setIcon(QIcon(QLatin1String(Core::Constants::ICON_LINK)));
|
||||
m_toggleSync->setCheckable(true);
|
||||
m_toggleSync->setChecked(true);
|
||||
m_toggleSync->setToolTip(tr("Synchronize with Editor"));
|
||||
connect(m_toggleSync, SIGNAL(clicked(bool)), this, SLOT(toggleCursorSynchronization()));
|
||||
|
||||
m_filterButton = new QToolButton;
|
||||
m_filterButton->setIcon(QIcon(":/core/images/filtericon.png"));
|
||||
m_filterButton->setIcon(QIcon(QLatin1String(Core::Constants::ICON_FILTER)));
|
||||
m_filterButton->setToolTip(tr("Filter tree"));
|
||||
m_filterButton->setPopupMode(QToolButton::InstantPopup);
|
||||
m_filterMenu = new QMenu(m_filterButton);
|
||||
|
||||
Reference in New Issue
Block a user