Added QAbstractItemModelTester to main and proxy model. And fixing errors in functions flags(...), rowCount(...) and columnCount(...).

This commit is contained in:
2026-01-19 18:43:13 +01:00
parent caffa1c18a
commit e1bc779791
4 changed files with 29 additions and 3 deletions

View File

@ -5,6 +5,7 @@
class QUndoStack;
class QAbstractItemModel;
class QAbstractItemModelTester;
class QString;
class TableModel;
@ -38,6 +39,8 @@ class GenericCore : public QObject {
QUndoStack* m_modelUndoStack;
std::shared_ptr<TableModel> m_mainModel;
std::shared_ptr<GeneralSortFilterModel> m_sortFilterModel;
std::unique_ptr<QAbstractItemModelTester> m_mainModelTester;
std::unique_ptr<QAbstractItemModelTester> m_proxyModelTester;
void setupModels();
void initModelData();