FlagsModel

class FlagsModel

Inherits from AddressableItemModel< QAbstractListModel >

Public Types

enum Columns

Values:

OFFSET = 0
SIZE
NAME
COUNT

Public Functions

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

Get name for item, optional.

Return
Item name or empty QString if item doesn’t have short descriptive name.
Parameters
  • index: item intex

Public Static Attributes

const int FlagDescriptionRole = Qt::UserRole