mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-22 18:32:44 +01:00
28 lines
830 B
C++
28 lines
830 B
C++
#pragma once
|
|
#ifndef _DFFFRAMESTREEMODEL_HPP_
|
|
#define _DFFFRAMESTREEMODEL_HPP_
|
|
#include <QAbstractItemModel>
|
|
#include <engine/RWTypes.hpp>
|
|
|
|
class DFFFramesTreeModel : public QAbstractItemModel
|
|
{
|
|
ModelHandle* model;
|
|
public:
|
|
|
|
explicit DFFFramesTreeModel(ModelHandle* m, QObject* parent = 0);
|
|
|
|
virtual int columnCount(const QModelIndex& parent = QModelIndex()) const;
|
|
|
|
virtual int rowCount(const QModelIndex& parent = QModelIndex()) const;
|
|
|
|
virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
|
|
|
|
virtual QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const;
|
|
|
|
virtual QModelIndex parent(const QModelIndex& child) const;
|
|
|
|
virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
|
|
};
|
|
|
|
#endif
|