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:
@@ -841,7 +841,7 @@ Utils::StyledBar *HelpPlugin::createWidgetToolBar()
|
||||
SLOT(updateSideBarSource()));
|
||||
|
||||
m_closeButton = new QToolButton();
|
||||
m_closeButton->setIcon(QIcon(QLatin1String(Core::Constants::ICON_CLOSE_DOCUMENT)));
|
||||
m_closeButton->setIcon(QIcon(QLatin1String(Core::Constants::ICON_BUTTON_CLOSE)));
|
||||
m_closeButton->setToolTip(tr("Close current page"));
|
||||
connect(m_closeButton, SIGNAL(clicked()), &OpenPagesManager::instance(),
|
||||
SLOT(closeCurrentPage()));
|
||||
|
||||
@@ -152,7 +152,7 @@ HelpWidget::HelpWidget(const Core::Context &context, WidgetStyle style, QWidget
|
||||
}
|
||||
|
||||
if (style == SideBarWidget) {
|
||||
QAction *close = new QAction(QIcon(QLatin1String(Core::Constants::ICON_CLOSE_DOCUMENT)),
|
||||
QAction *close = new QAction(QIcon(QLatin1String(Core::Constants::ICON_BUTTON_CLOSE)),
|
||||
QString(), toolBar);
|
||||
connect(close, SIGNAL(triggered()), this, SIGNAL(closeButtonClicked()));
|
||||
layout->addWidget(toolButton(close));
|
||||
|
||||
@@ -69,7 +69,7 @@ void OpenPagesDelegate::paint(QPainter *painter, const QStyleOptionViewItem &opt
|
||||
if (index.column() == 1 && index.model()->rowCount() > 1
|
||||
&& option.state & QStyle::State_MouseOver) {
|
||||
const QIcon icon(QLatin1String((option.state & QStyle::State_Selected) ?
|
||||
Core::Constants::ICON_CLOSE : Core::Constants::ICON_CLOSE_DARK));
|
||||
Core::Constants::ICON_CLOSE_BUTTON : Core::Constants::ICON_DARK_CLOSE_BUTTON));
|
||||
|
||||
const QRect iconRect(option.rect.right() - option.rect.height(),
|
||||
option.rect.top(), option.rect.height(), option.rect.height());
|
||||
|
||||
Reference in New Issue
Block a user