SIEdit/app/objectmodel.h

28 lines
586 B
C
Raw Normal View History

2022-07-03 23:45:57 -04:00
#ifndef OBJECTMODEL_H
#define OBJECTMODEL_H
2022-07-11 04:48:50 -04:00
#include <interleaf.h>
2022-07-03 23:45:57 -04:00
2022-07-11 04:48:50 -04:00
#include "model.h"
class ObjectModel : public Model
2022-07-03 23:45:57 -04:00
{
Q_OBJECT
public:
enum Columns {
kColIndex,
kColName,
kColCount
};
explicit ObjectModel(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 // OBJECTMODEL_H