1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 22:19:54 +00:00
openmw-tes3mp/apps/launcher/datafilesmodel.h

35 lines
1,019 B
C
Raw Normal View History

2011-03-28 23:36:26 +00:00
#ifndef DATAFILESMODEL_H
#define DATAFILESMODEL_H
#include <QAbstractItemModel>
#include <QModelIndex>
#include <QVariant>
2011-03-28 23:36:26 +00:00
class DataFilesItem;
2011-03-28 23:36:26 +00:00
class DataFilesModel : public QAbstractItemModel
2011-03-28 23:36:26 +00:00
{
Q_OBJECT
2011-03-28 23:36:26 +00:00
public:
//DataFilesModel(const QString &data, QObject *parent = 0);
2011-03-28 23:36:26 +00:00
DataFilesModel(QObject *parent = 0);
~DataFilesModel();
2011-03-28 23:36:26 +00:00
QVariant data(const QModelIndex &index, int role) const;
2011-03-28 23:36:26 +00:00
Qt::ItemFlags flags(const QModelIndex &index) const;
QVariant headerData(int section, Qt::Orientation orientation,
int role = Qt::DisplayRole) const;
QModelIndex index(int row, int column,
const QModelIndex &parent = QModelIndex()) const;
QModelIndex parent(const QModelIndex &index) const;
int rowCount(const QModelIndex &parent = QModelIndex()) const;
int columnCount(const QModelIndex &parent = QModelIndex()) const;
private:
//void setupModelData(const QStringList &lines, TreeItem *parent);
DataFilesItem *rootItem;
2011-03-28 23:36:26 +00:00
};
#endif