Added a simple read-only TableModel and made it accessible via GenericCore.

Basically like in this tutorial: https://doc.qt.io/qt-6/modelview.html#2-1-a-read-only-table
This commit is contained in:
2025-12-02 15:59:34 +01:00
parent 301d143b37
commit 6a3725bde7
5 changed files with 76 additions and 1 deletions

View File

@ -3,8 +3,11 @@
#include <QObject>
class QAbstractItemModel;
class QString;
class TableModel;
class GenericCore : public QObject {
Q_OBJECT
@ -18,10 +21,16 @@ class GenericCore : public QObject {
bool isApplicationUpdateAvailable();
void triggerApplicationUpdate();
std::shared_ptr<QAbstractItemModel> getModel() const;
signals:
void displayStatusMessage(QString message);
private:
std::shared_ptr<TableModel> m_mainModel;
void setupModels();
QString getMaintenanceToolFilePath() const;
};