SIEdit/app/siview/chunkmodel.h
2022-07-11 01:48:50 -07:00

30 lines
612 B
C++

#ifndef CHUNKMODEL_H
#define CHUNKMODEL_H
#include <chunk.h>
#include "model.h"
class ChunkModel : public Model
{
Q_OBJECT
public:
enum Columns
{
kColType,
kColOffset,
kColDesc,
kColObjectID,
kColCount
};
explicit ChunkModel(QObject *parent = nullptr);
virtual int columnCount(const QModelIndex &parent = QModelIndex()) const override;
virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
};
#endif // CHUNKMODEL_H