mirror of
https://github.com/Indy970/QtHPConnect
synced 2024-12-27 21:59:29 +01:00
18 lines
488 B
C++
18 lines
488 B
C++
#ifndef DATAMODEL_H
|
|
#define DATAMODEL_H
|
|
|
|
#include <QAbstractTableModel>
|
|
#include <QString>
|
|
|
|
class dataModel: public QAbstractTableModel
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
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;
|
|
~dataModel() override;
|
|
};
|
|
|
|
#endif // DATAMODEL_H
|