forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user