#include <QGridLayout>
#include <QWidget>
#include <QAction>
+#include <QScrollArea>
#ifdef _DEBUG
#include <iostream>
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);
}
}
+
const QList<ModuleBase_ModelWidget*>& XGUI_PropertyPanel::modelWidgets() const
{
return myWidgets;