mirror of
https://github.com/Indy970/QtHPConnect
synced 2024-12-26 21:59:23 +01:00
35 lines
1.2 KiB
C++
35 lines
1.2 KiB
C++
/*
|
|
* This file is part of the QtHPConnect distribution (https://github.com/Indy970/QtHPConnect.git).
|
|
* Copyright (c) 2020 Ian Gebbie.
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, version 3 or later.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#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
|