TypesModel

class TypesModel

Inherits from QAbstractListModel

Public Types

enum Columns

Values:

TYPE = 0
SIZE
FORMAT
CATEGORY
COUNT

Public Functions

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

Public Static Attributes

const int TypeDescriptionRole = Qt::UserRole