diff options
author | Eike Ziller <eike.ziller@qt.io> | 2016-09-13 12:57:11 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2016-09-16 14:18:05 +0000 |
commit | 9648a7e5b4cfaa27a828e2e2bc4fcb3859d3ecf5 (patch) | |
tree | 21594c38f31d6aebbb4d733d7c87807ed73a87d8 /src/plugins/help/helpwidget.cpp | |
parent | a9652dad69bcb9d7e016ba743aa811ee8ecf6587 (diff) | |
download | qt-creator-9648a7e5b4cfaa27a828e2e2bc4fcb3859d3ecf5.tar.gz |
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 <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/help/helpwidget.cpp')
-rw-r--r-- | src/plugins/help/helpwidget.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/help/helpwidget.cpp b/src/plugins/help/helpwidget.cpp index b679efd766..8684e7272d 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); |