18 #include <QStackedWidget>
19 #include <QVBoxLayout>
23 , m_stackedWidget(new QStackedWidget)
25 , m_size_hint(QSize(1024, 1024))
27 setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
28 m_stackedWidget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
30 auto* layout =
new QVBoxLayout;
32 layout->setSpacing(0);
33 layout->setContentsMargins(0, 0, 0, 0);
79 connect(
m_model, &SessionModel::modelAboutToBeReset,
this,
82 connect(
m_model, &SessionModel::rowsAboutToBeRemoved,
this,
91 disconnect(
m_model, &SessionModel::modelAboutToBeReset,
this,
94 disconnect(
m_model, &SessionModel::rowsAboutToBeRemoved,
this,
108 throw Error(
"ItemStackWidget::validateItem() -> Error. "
109 "Attempt to use items from different models.");
Defines class SessionModel.
Base class for a GUI data item.
SessionModel * model() const
Returns model of this item.
Base class for a GUI data collection. A collection is e.g. all real data (RealDataModel)....
SessionItem * itemForIndex(const QModelIndex &index) const
QModelIndex index(int row, int column, const QModelIndex &parent) const override