From: vsv Date: Mon, 18 Nov 2019 14:33:12 +0000 (+0300) Subject: Issue #18096(Tuleap): Make property panel controls on a scroll panel based X-Git-Tag: V9_4_0rc2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=67b1c46b3266978999e6df705dfa651b669364ad;p=modules%2Fshaper.git Issue #18096(Tuleap): Make property panel controls on a scroll panel based --- diff --git a/src/XGUI/XGUI_PropertyPanel.cpp b/src/XGUI/XGUI_PropertyPanel.cpp index 4138cc25c..24bd52b94 100644 --- a/src/XGUI/XGUI_PropertyPanel.cpp +++ b/src/XGUI/XGUI_PropertyPanel.cpp @@ -53,6 +53,7 @@ #include #include #include +#include #ifdef _DEBUG #include @@ -75,12 +76,18 @@ XGUI_PropertyPanel::XGUI_PropertyPanel(QWidget* theParent, XGUI_OperationMgr* th setObjectName(PROP_PANEL); setStyleSheet("::title { position: relative; padding-left: 5px; text-align: left center }"); - QWidget* aContent = new QWidget(this); + QScrollArea* aScroll = new QScrollArea(this); + aScroll->setWidgetResizable(true); + aScroll->setFrameStyle(QFrame::NoFrame); + + QWidget* aContent = new QWidget(aScroll); QGridLayout* aMainLayout = new QGridLayout(aContent); const int kPanelColumn = 0; int aPanelRow = 0; aMainLayout->setContentsMargins(3, 3, 3, 3); - setWidget(aContent); + aScroll->setWidget(aContent); + + setWidget(aScroll); QFrame* aFrm = new QFrame(aContent); aFrm->setFrameStyle(QFrame::Raised); @@ -184,6 +191,7 @@ void XGUI_PropertyPanel::setModelWidgets(const QList& t } } + const QList& XGUI_PropertyPanel::modelWidgets() const { return myWidgets;