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/sqlprofilemodel.h

30 lines
607 B
C
Raw Normal View History

2018-07-22 16:47:55 +02:00
#ifndef SQLPROFILEMODEL_H
#define SQLPROFILEMODEL_H
#include <QObject>
#include <QDebug>
#include <QSqlError>
#include <QSqlQuery>
#include <QDateTime>
#include <QSqlRecord>
#include <QSqlTableModel>
class SqlProfileModel : public QSqlTableModel
{
Q_OBJECT
public:
explicit SqlProfileModel(QObject *parent = nullptr);
QVariant data(const QModelIndex &index, int role) const Q_DECL_OVERRIDE;
QHash<int, QByteArray> roleNames() const Q_DECL_OVERRIDE;
2018-08-03 15:18:23 +02:00
2018-08-11 23:54:34 +02:00
2018-08-03 15:18:23 +02:00
Q_INVOKABLE bool append(QString name);
2018-08-11 23:54:34 +02:00
Q_INVOKABLE void remove(int row);
2018-07-22 16:47:55 +02:00
signals:
public slots:
};
#endif // SQLPROFILEMODEL_H