RelocsModel

class RelocsModel : public AddressableItemModel<QAbstractTableModel>

Public Types

  • enum Column

    Values:

    • enumerator VAddrColumn

    • enumerator TypeColumn

    • enumerator NameColumn

    • enumerator CommentColumn

    • enumerator ColumnCount

  • enum Role

    Values:

    • enumerator RelocDescriptionRole

    • enumerator AddressRole

Public Functions

  • RelocsModel(QObject *parent = nullptr)

  • int rowCount(const QModelIndex &parent) const override

  • int columnCount(const QModelIndex &parent) const override

  • QVariant data(const QModelIndex &index, int role) const override

  • QVariant headerData(int section, Qt::Orientation orientation, int role) const override

  • virtual RVA address(const QModelIndex &index) const override

  • virtual QString name(const QModelIndex &index) const override

    Get name for item, optional.

    • Parameters

      index – item intex

      Returns

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

  • void reload()