From 9648a7e5b4cfaa27a828e2e2bc4fcb3859d3ecf5 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Tue, 13 Sep 2016 12:57:11 +0200 Subject: [PATCH] Context Help: Use correct "close" icon Context help should have the icon that closes a "panel to the right". Change-Id: I954171c4f2d604a23bf9c1e6f341de0f5cc87ace Reviewed-by: Alessandro Portale --- src/plugins/help/helpwidget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/help/helpwidget.cpp b/src/plugins/help/helpwidget.cpp index b679efd7667..8684e7272da 100644 --- a/src/plugins/help/helpwidget.cpp +++ b/src/plugins/help/helpwidget.cpp @@ -230,7 +230,9 @@ HelpWidget::HelpWidget(const Core::Context &context, WidgetStyle style, QWidget } if (style != ExternalWindow) { - m_closeAction = new QAction(Utils::Icons::CLOSE_TOOLBAR.icon(), QString(), toolBar); + const Utils::Icon &icon = style == ModeWidget ? Utils::Icons::CLOSE_TOOLBAR + : Utils::Icons::CLOSE_SPLIT_RIGHT; + m_closeAction = new QAction(icon.icon(), QString(), toolBar); connect(m_closeAction, &QAction::triggered, this, &HelpWidget::closeButtonClicked); button = new QToolButton; button->setDefaultAction(m_closeAction);