1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 11:22:45 +01:00
openrw/rwviewer/models/DFFFramesTreeModel.hpp

35 lines
1.1 KiB
C++
Raw Normal View History

2014-02-12 07:42:07 +01:00
#ifndef _DFFFRAMESTREEMODEL_HPP_
#define _DFFFRAMESTREEMODEL_HPP_
#include <QAbstractItemModel>
#include <rw/forward.hpp>
#include <rw/types.hpp>
2014-02-12 07:42:07 +01:00
2016-09-09 22:13:21 +02:00
class DFFFramesTreeModel : public QAbstractItemModel {
ClumpPtr model;
2016-09-09 22:13:21 +02:00
2014-02-12 07:42:07 +01:00
public:
explicit DFFFramesTreeModel(ClumpPtr m, QObject* parent = 0);
2016-09-09 22:13:21 +02:00
2014-02-12 07:42:07 +01:00
virtual int columnCount(const QModelIndex& parent = QModelIndex()) const;
2016-09-09 22:13:21 +02:00
2014-02-12 07:42:07 +01:00
virtual int rowCount(const QModelIndex& parent = QModelIndex()) const;
2016-09-09 22:13:21 +02:00
virtual QVariant data(const QModelIndex& index,
int role = Qt::DisplayRole) const;
2016-09-09 22:13:21 +02:00
virtual bool setData(const QModelIndex& index, const QVariant& value,
int role);
2016-09-09 22:13:21 +02:00
virtual Qt::ItemFlags flags(const QModelIndex& index) const;
virtual QModelIndex index(int row, int column,
const QModelIndex& parent = QModelIndex()) const;
2014-02-12 07:42:07 +01:00
virtual QModelIndex parent(const QModelIndex& child) const;
2016-09-09 22:13:21 +02:00
virtual QVariant headerData(int section, Qt::Orientation orientation,
int role = Qt::DisplayRole) const;
2014-02-12 07:42:07 +01:00
};
2014-06-06 13:18:32 +02:00
#endif