16 #include "Base/Util/Assert.h"
18 #include <QStackedWidget>
19 #include <QVBoxLayout>
24 , m_stackedWidget(new QStackedWidget)
26 setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
27 m_stackedWidget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
31 auto* layout =
new QVBoxLayout;
33 layout->setSpacing(0);
34 layout->setContentsMargins(0, 0, 0, 0);
52 if (presentationType.isEmpty()) {
77 if (widget->isHidden())
103 return QStringList();
145 QSizePolicy::Policy policy = QSizePolicy::Ignored;
147 policy = QSizePolicy::Expanding;
151 page->setSizePolicy(policy, policy);
Base class for a GUI data item.