This repository has been archived on 2024-06-03. You can view files and clone it, but cannot push or open issues or pull requests.
app/headers/sqlstoragemodel.h

27 lines
525 B
C
Raw Normal View History

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-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