ClassesModel

class ClassesModel : public QAbstractItemModel

Common abstract base class for Bin and Anal classes models.

Subclassed by AnalysisClassesModel, BinClassesModel

Public Types

  • enum Columns

    Values:

    • enumerator NAME

    • enumerator TYPE

    • enumerator OFFSET

    • enumerator VTABLE

    • enumerator COUNT

  • enum RowType

    values for TypeRole data

    Values:

    • enumerator Class

    • enumerator Base

    • enumerator VTable

    • enumerator Method

    • enumerator Field

Public Functions

  • inline explicit ClassesModel(QObject *parent = nullptr)

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

Public Static Attributes

  • static const int OffsetRole = Qt::UserRole

    Offset role of data for QModelIndex.

    will contain values of type RVA

  • static const int NameRole = Qt::UserRole + 1

    Name role of data for QModelIndex.

    will contain values of QString, used for sorting, as well as identifying classes and methods

  • static const int TypeRole = Qt::UserRole + 2

    Type role of data for QModelIndex.

    will contain values of RowType

  • static const int VTableRole = Qt::UserRole + 3

    VTable role of data for QModelIndex.

    will contain values of type long long for sorting by vtable offset