first
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#ifndef T_TABLEVIEWMODEL_H
|
||||
#define T_TABLEVIEWMODEL_H
|
||||
|
||||
#include <QAbstractTableModel>
|
||||
|
||||
class T_TableViewModel : public QAbstractTableModel
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit T_TableViewModel(QObject* parent = nullptr);
|
||||
~T_TableViewModel();
|
||||
int rowCount(const QModelIndex& parent = QModelIndex()) const override;
|
||||
int columnCount(const QModelIndex& parent = QModelIndex()) const override;
|
||||
|
||||
QVariant data(const QModelIndex& index, int role) const override;
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
|
||||
|
||||
private:
|
||||
QStringList _header;
|
||||
QList<QStringList> _dataList;
|
||||
QList<QIcon> _iconList;
|
||||
};
|
||||
|
||||
#endif // T_TABLEVIEWMODEL_H
|
||||
Reference in New Issue
Block a user