mirror of
https://github.com/isledecomp/SIEdit.git
synced 2024-11-27 09:35:45 -05:00
25 lines
467 B
C++
25 lines
467 B
C++
#ifndef ABSTRACTSIITEMMODEL_H
|
|
#define ABSTRACTSIITEMMODEL_H
|
|
|
|
#include <chunk.h>
|
|
#include <QAbstractItemModel>
|
|
|
|
class AbstractSIItemModel : public QAbstractItemModel
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit AbstractSIItemModel(QObject *parent = nullptr);
|
|
|
|
void SetChunk(si::Chunk *c);
|
|
|
|
protected:
|
|
si::Chunk *GetChunkFromIndex(const QModelIndex &index) const;
|
|
|
|
si::Chunk *root() const { return chunk_; }
|
|
|
|
private:
|
|
si::Chunk *chunk_;
|
|
|
|
};
|
|
|
|
#endif // ABSTRACTSIITEMMODEL_H
|