Added a ModelSummary class to make the overview over the model content accessible via QProperty system & a SummaryWidget to show this information. Only property rowCount as a proof of concept. Other properties will follow.

This commit is contained in:
2026-02-15 16:36:13 +01:00
parent b28a35280c
commit dac9ac46f2
12 changed files with 157 additions and 10 deletions

View File

@ -2,6 +2,7 @@
#define TABLEMODEL_H
#include <QAbstractTableModel>
#include "metadata.h"
class QUndoStack;
class ModelItem;
@ -55,6 +56,12 @@ class TableModel : public QAbstractTableModel {
const QList<ModelItemValues>& itemValuesList,
const QModelIndex& parentIndex = QModelIndex());
signals:
void rowCountChanged();
private slots:
void onRowCountChanged(const QModelIndex& parent, int first, int last);
private:
/// *** members ***
// TODO shared_ptr -> unique_ptr