2019-02-10 14:32:15 +01:00
|
|
|
#ifndef DATAMODEL_H
|
|
|
|
#define DATAMODEL_H
|
|
|
|
|
2019-02-10 14:43:00 +01:00
|
|
|
#include <QAbstractTableModel>
|
|
|
|
#include <QString>
|
2019-02-10 14:32:15 +01:00
|
|
|
|
2019-02-10 14:43:00 +01:00
|
|
|
class dataModel: public QAbstractTableModel
|
2019-02-10 14:32:15 +01:00
|
|
|
{
|
2019-02-10 14:43:00 +01:00
|
|
|
Q_OBJECT
|
2019-02-10 14:32:15 +01:00
|
|
|
public:
|
2019-02-10 14:43:00 +01:00
|
|
|
dataModel(QObject *parent);
|
|
|
|
int rowCount(const QModelIndex &parent = QModelIndex()) const override ;
|
|
|
|
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
|
|
|
|
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
|
2019-02-10 14:32:15 +01:00
|
|
|
};
|
|
|
|
|
2019-02-10 14:43:00 +01:00
|
|
|
#endif // DATAMODEL_H
|