QtHPConnect/datamodel.h

19 lines
488 B
C
Raw Normal View History

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-09-15 17:23:44 +02:00
~dataModel() override;
2019-02-10 14:32:15 +01:00
};
2019-02-10 14:43:00 +01:00
#endif // DATAMODEL_H