2018-07-22 16:47:55 +02:00
|
|
|
#ifndef SQLSTORAGEMODEL_H
|
|
|
|
#define SQLSTORAGEMODEL_H
|
|
|
|
|
|
|
|
#include <QObject>
|
2018-08-02 12:50:55 +02:00
|
|
|
#include <QDebug>
|
|
|
|
#include <QSqlError>
|
|
|
|
#include <QSqlQuery>
|
|
|
|
#include <QDateTime>
|
|
|
|
#include <QSqlRecord>
|
|
|
|
#include <QSqlTableModel>
|
2018-07-22 16:47:55 +02:00
|
|
|
|
2018-08-02 12:50:55 +02:00
|
|
|
class SqlStorageModel : public QSqlTableModel
|
2018-07-22 16:47:55 +02:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
2018-07-25 00:32:20 +02:00
|
|
|
|
2018-07-22 16:47:55 +02:00
|
|
|
public:
|
|
|
|
explicit SqlStorageModel(QObject *parent = nullptr);
|
|
|
|
|
2018-08-02 12:50:55 +02:00
|
|
|
QVariant data(const QModelIndex &index, int role) const Q_DECL_OVERRIDE;
|
|
|
|
QHash<int, QByteArray> roleNames() const Q_DECL_OVERRIDE;
|
2018-07-22 16:47:55 +02:00
|
|
|
signals:
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SQLSTORAGEMODEL_H
|