forked from qt-creator/qt-creator
Core::Constants: Rename close icon constants to reflect file name
Change-Id: Ic88d9a87a9eb08e597a0aa5652ac061b54d86d1e Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -199,9 +199,9 @@ const char ICON_RESET[] = ":/core/images/reset.png";
|
||||
const char ICON_RELOAD_GRAY[] = ":/core/images/reload_gray.png";
|
||||
const char ICON_MAGNIFIER[] = ":/core/images/magnifier.png";
|
||||
const char ICON_TOGGLE_SIDEBAR[] = ":/core/images/sidebaricon.png";
|
||||
const char ICON_CLOSE_DOCUMENT[] = ":/core/images/button_close.png";
|
||||
const char ICON_CLOSE[] = ":/core/images/closebutton.png";
|
||||
const char ICON_CLOSE_DARK[] = ":/core/images/darkclosebutton.png";
|
||||
const char ICON_BUTTON_CLOSE[] = ":/core/images/button_close.png";
|
||||
const char ICON_CLOSE_BUTTON[] = ":/core/images/closebutton.png";
|
||||
const char ICON_DARK_CLOSE_BUTTON[] = ":/core/images/darkclosebutton.png";
|
||||
const char ICON_DARK_CLOSE[] = ":/core/images/darkclose.png";
|
||||
const char ICON_SPLIT_HORIZONTAL[] = ":/core/images/splitbutton_horizontal.png";
|
||||
const char ICON_SPLIT_VERTICAL[] = ":/core/images/splitbutton_vertical.png";
|
||||
|
||||
@@ -68,7 +68,7 @@ void OpenEditorsDelegate::paint(QPainter *painter, const QStyleOptionViewItem &o
|
||||
|
||||
if (index.column() == 1 && option.state & QStyle::State_MouseOver) {
|
||||
const QIcon icon(QLatin1String((option.state & QStyle::State_Selected) ?
|
||||
Constants::ICON_CLOSE : Constants::ICON_CLOSE_DARK));
|
||||
Constants::ICON_CLOSE_BUTTON : Constants::ICON_DARK_CLOSE_BUTTON));
|
||||
|
||||
QRect iconRect(option.rect.right() - option.rect.height(),
|
||||
option.rect.top(),
|
||||
|
||||
@@ -128,7 +128,7 @@ EditorToolBar::EditorToolBar(QWidget *parent) :
|
||||
d->m_editorList->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||
|
||||
d->m_closeEditorButton->setAutoRaise(true);
|
||||
d->m_closeEditorButton->setIcon(QIcon(QLatin1String(Constants::ICON_CLOSE_DOCUMENT)));
|
||||
d->m_closeEditorButton->setIcon(QIcon(QLatin1String(Constants::ICON_BUTTON_CLOSE)));
|
||||
d->m_closeEditorButton->setEnabled(false);
|
||||
d->m_closeEditorButton->setProperty("showborder", true);
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ FindToolBar::FindToolBar(FindPlugin *plugin, CurrentDocumentFind *currentDocumen
|
||||
|
||||
connect(m_ui.findEdit, SIGNAL(editingFinished()), this, SLOT(invokeResetIncrementalSearch()));
|
||||
|
||||
m_ui.close->setIcon(QIcon(QLatin1String(Core::Constants::ICON_CLOSE_DOCUMENT)));
|
||||
m_ui.close->setIcon(QIcon(QLatin1String(Core::Constants::ICON_BUTTON_CLOSE)));
|
||||
connect(m_ui.close, SIGNAL(clicked()), this, SLOT(hideAndResetFocus()));
|
||||
|
||||
m_findCompleter->setModel(m_plugin->findCompletionModel());
|
||||
|
||||
@@ -133,7 +133,7 @@ ManhattanStylePrivate::ManhattanStylePrivate() :
|
||||
lineeditImage(Utils::StyleHelper::dpiSpecificImageFile(QStringLiteral(":/core/images/inputfield.png"))),
|
||||
lineeditImage_disabled(Utils::StyleHelper::dpiSpecificImageFile(QStringLiteral(":/core/images/inputfield_disabled.png"))),
|
||||
extButtonPixmap(QLatin1String(":/core/images/extension.png")),
|
||||
closeButtonPixmap(QLatin1String(Core::Constants::ICON_CLOSE))
|
||||
closeButtonPixmap(QLatin1String(Core::Constants::ICON_CLOSE_BUTTON))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ NavigationSubWidget::NavigationSubWidget(NavigationWidget *parentWidget, int pos
|
||||
splitAction->setIcon(QIcon(QLatin1String(Constants::ICON_SPLIT_HORIZONTAL)));
|
||||
splitAction->setToolTip(tr("Split"));
|
||||
QToolButton *close = new QToolButton();
|
||||
close->setIcon(QIcon(QLatin1String(Constants::ICON_CLOSE_DOCUMENT)));
|
||||
close->setIcon(QIcon(QLatin1String(Constants::ICON_BUTTON_CLOSE)));
|
||||
close->setToolTip(tr("Close"));
|
||||
|
||||
toolBarLayout->addWidget(splitAction);
|
||||
|
||||
@@ -143,7 +143,7 @@ OutputPaneManager::OutputPaneManager(QWidget *parent) :
|
||||
m_minMaxAction->setIcon(m_maximizeIcon);
|
||||
m_minMaxAction->setText(tr("Maximize Output Pane"));
|
||||
|
||||
m_closeButton->setIcon(QIcon(QLatin1String(Constants::ICON_CLOSE_DOCUMENT)));
|
||||
m_closeButton->setIcon(QIcon(QLatin1String(Constants::ICON_BUTTON_CLOSE)));
|
||||
connect(m_closeButton, SIGNAL(clicked()), this, SLOT(slotHide()));
|
||||
|
||||
connect(ICore::instance(), SIGNAL(saveSettingsRequested()), this, SLOT(saveSettings()));
|
||||
|
||||
@@ -81,7 +81,7 @@ SideBarWidget::SideBarWidget(SideBar *sideBar, const QString &id)
|
||||
|
||||
QAction *closeAction = new QAction(tr("Close"), m_toolbar);
|
||||
closeAction->setToolTip(tr("Close"));
|
||||
closeAction->setIcon(QIcon(QLatin1String(Constants::ICON_CLOSE_DOCUMENT)));
|
||||
closeAction->setIcon(QIcon(QLatin1String(Constants::ICON_BUTTON_CLOSE)));
|
||||
connect(closeAction, SIGNAL(triggered()), this, SIGNAL(closeMe()));
|
||||
m_toolbar->addAction(closeAction);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user