RelocsModel

class RelocsModel : public AddressableItemModel<QAbstractTableModel>

Public Types

enum Column

Values:

VAddrColumn = 0
TypeColumn
NameColumn
CommentColumn
ColumnCount
enum Role

Values:

RelocDescriptionRole = Qt::UserRole
AddressRole

Public Functions

RelocsModel(QList<RelocDescription> *relocs, QObject *parent = nullptr)
int rowCount(const QModelIndex &parent) const
int columnCount(const QModelIndex &parent) const
QVariant data(const QModelIndex &index, int role) const
QVariant headerData(int section, Qt::Orientation orientation, int role) 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