FlagsModel

class FlagsModel : public AddressableItemModel<QAbstractListModel>

Public Types

enum Columns

Values:

enumerator OFFSET
enumerator SIZE
enumerator NAME
enumerator REALNAME
enumerator COUNT

Public Functions

FlagsModel(QList<FlagDescription> *flags, 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
RVA address(const QModelIndex &index) const override
QString name(const QModelIndex &index) const override

Get name for item, optional.

Return

Item name or empty QString if item doesn’t have short descriptive name.

Parameters
  • index: item intex

const FlagDescription *description(QModelIndex index) const

Public Static Attributes

const int FlagDescriptionRole = Qt::UserRole