forked from qt-creator/qt-creator
Avoid vanishing close button in help side bar.
This commit is contained in:
@@ -57,6 +57,8 @@
|
|||||||
|
|
||||||
#include <texteditor/texteditorconstants.h>
|
#include <texteditor/texteditorconstants.h>
|
||||||
|
|
||||||
|
#include <utils/styledbar.h>
|
||||||
|
|
||||||
#include <QtCore/QDebug>
|
#include <QtCore/QDebug>
|
||||||
#include <QtCore/qplugin.h>
|
#include <QtCore/qplugin.h>
|
||||||
#include <QtCore/QFileInfo>
|
#include <QtCore/QFileInfo>
|
||||||
@@ -454,18 +456,17 @@ void HelpPlugin::createRightPaneSideBar()
|
|||||||
QHBoxLayout *hboxLayout = new QHBoxLayout();
|
QHBoxLayout *hboxLayout = new QHBoxLayout();
|
||||||
hboxLayout->setSpacing(0);
|
hboxLayout->setSpacing(0);
|
||||||
hboxLayout->setMargin(0);
|
hboxLayout->setMargin(0);
|
||||||
|
hboxLayout->addWidget(rightPaneToolBar);
|
||||||
hboxLayout->addStretch(5);
|
hboxLayout->addStretch(5);
|
||||||
hboxLayout->addWidget(closeButton);
|
hboxLayout->addWidget(closeButton);
|
||||||
|
Core::Utils::StyledBar *w = new Core::Utils::StyledBar;
|
||||||
QWidget *w = new QWidget(rightPaneToolBar);
|
|
||||||
w->setLayout(hboxLayout);
|
w->setLayout(hboxLayout);
|
||||||
rightPaneToolBar->addWidget(w);
|
|
||||||
connect(closeButton, SIGNAL(clicked()), this, SLOT(slotHideRightPane()));
|
connect(closeButton, SIGNAL(clicked()), this, SLOT(slotHideRightPane()));
|
||||||
|
|
||||||
QVBoxLayout *rightPaneLayout = new QVBoxLayout;
|
QVBoxLayout *rightPaneLayout = new QVBoxLayout;
|
||||||
rightPaneLayout->setMargin(0);
|
rightPaneLayout->setMargin(0);
|
||||||
rightPaneLayout->setSpacing(0);
|
rightPaneLayout->setSpacing(0);
|
||||||
rightPaneLayout->addWidget(rightPaneToolBar);
|
rightPaneLayout->addWidget(w);
|
||||||
|
|
||||||
m_helpViewerForSideBar = new HelpViewer(m_helpEngine, 0);
|
m_helpViewerForSideBar = new HelpViewer(m_helpEngine, 0);
|
||||||
Aggregation::Aggregate *agg = new Aggregation::Aggregate();
|
Aggregation::Aggregate *agg = new Aggregation::Aggregate();
|
||||||
|
|||||||
Reference in New Issue
Block a user