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:
@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user