TypesModel

class TypesModel : public QAbstractListModel

Public Types

enum Columns

Values:

enumerator TYPE
enumerator SIZE
enumerator CATEGORY
enumerator FORMAT
enumerator COUNT

Public Functions

TypesModel(QList<TypeDescription> *types, QObject *parent = nullptr)
int rowCount(const QModelIndex &parent = QModelIndex()) const override
int columnCount(const QModelIndex &parent = QModelIndex()) const override
QVariant data(const QModelIndex &index, int role) const override
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override
bool removeRows(int row, int count, const QModelIndex &parent = QModelIndex()) override

Public Static Attributes

static const int TypeDescriptionRole = Qt::UserRole