HeadersModel

class HeadersModel

Inherits from AddressableItemModel< QAbstractListModel >

Public Types

enum Column

Values:

OffsetColumn = 0
NameColumn
ValueColumn
ColumnCount
enum Role

Values:

HeaderDescriptionRole = Qt::UserRole

Public Functions

HeadersModel(QList<HeaderDescription> *headers, 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