From b799f32b967b9cb5a91631736ef5f035308beaa8 Mon Sep 17 00:00:00 2001 From: con <qtc-committer@nokia.com> Date: Fri, 17 Jul 2009 15:04:14 +0200 Subject: [PATCH] Avoid vanishing close button in help side bar. --- src/plugins/help/helpplugin.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/plugins/help/helpplugin.cpp b/src/plugins/help/helpplugin.cpp index 3f78714a70c..295e59fae29 100644 --- a/src/plugins/help/helpplugin.cpp +++ b/src/plugins/help/helpplugin.cpp @@ -57,6 +57,8 @@ #include <texteditor/texteditorconstants.h> +#include <utils/styledbar.h> + #include <QtCore/QDebug> #include <QtCore/qplugin.h> #include <QtCore/QFileInfo> @@ -454,18 +456,17 @@ void HelpPlugin::createRightPaneSideBar() QHBoxLayout *hboxLayout = new QHBoxLayout(); hboxLayout->setSpacing(0); hboxLayout->setMargin(0); + hboxLayout->addWidget(rightPaneToolBar); hboxLayout->addStretch(5); hboxLayout->addWidget(closeButton); - - QWidget *w = new QWidget(rightPaneToolBar); + Core::Utils::StyledBar *w = new Core::Utils::StyledBar; w->setLayout(hboxLayout); - rightPaneToolBar->addWidget(w); connect(closeButton, SIGNAL(clicked()), this, SLOT(slotHideRightPane())); QVBoxLayout *rightPaneLayout = new QVBoxLayout; rightPaneLayout->setMargin(0); rightPaneLayout->setSpacing(0); - rightPaneLayout->addWidget(rightPaneToolBar); + rightPaneLayout->addWidget(w); m_helpViewerForSideBar = new HelpViewer(m_helpEngine, 0); Aggregation::Aggregate *agg = new Aggregation::Aggregate(); -- GitLab