From 0596060c57c244e60b9f38b7b9f97da8af50bd5f Mon Sep 17 00:00:00 2001 From: vsv Date: Mon, 18 Nov 2019 17:33:12 +0300 Subject: [PATCH] Issue #18096(Tuleap): Make property panel controls on a scroll panel based --- src/XGUI/XGUI_PropertyPanel.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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; -- 2.39.2