SIEdit/app/siview/chunkmodel.h

32 lines
625 B
C
Raw Normal View History

2022-06-23 21:36:00 -04:00
#ifndef CHUNKMODEL_H
#define CHUNKMODEL_H
2022-07-18 03:27:00 -04:00
#include <info.h>
2022-06-23 21:36:00 -04:00
2022-07-11 04:48:50 -04:00
#include "model.h"
class ChunkModel : public Model
2022-06-23 21:36:00 -04:00
{
2022-07-03 23:45:57 -04:00
Q_OBJECT
2022-06-23 21:36:00 -04:00
public:
enum Columns
{
kColType,
kColOffset,
2022-07-18 05:11:24 -04:00
kColSize,
2022-06-23 21:36:00 -04:00
kColDesc,
kColObjectID,
2022-06-23 21:36:00 -04:00
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