TypesModel¶
-
class
TypesModel: public QAbstractListModel¶ -
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¶
-