SegmentsModel

class SegmentsModel : public AddressableItemModel<QAbstractListModel>

Public Types

enum Column

Values:

enumerator NameColumn
enumerator SizeColumn
enumerator AddressColumn
enumerator EndAddressColumn
enumerator PermColumn
enumerator ColumnCount
enum Role

Values:

enumerator SegmentDescriptionRole

Public Functions

SegmentsModel(QList<SegmentDescription> *segments, 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 segment, 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