FunctionModel

class FunctionModel : public AddressableItemModel<>

Public Types

enum Column

Values:

enumerator NameColumn = 0
enumerator SizeColumn
enumerator ImportColumn
enumerator OffsetColumn
enumerator NargsColumn
enumerator NlocalsColumn
enumerator NbbsColumn
enumerator CalltypeColumn
enumerator EdgesColumn
enumerator FrameColumn
enumerator ColumnCount

Public Functions

FunctionModel(QList<FunctionDescription> *functions, QSet<RVA> *importAddresses, ut64 *mainAdress, bool nested, QFont defaultFont, QFont highlightFont, QObject *parent = nullptr)
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override
QModelIndex parent(const QModelIndex &index) const override
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 section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override
bool updateCurrentIndex()

Return

true if the index changed

void setNested(bool nested)
bool isNested()
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

Public Static Attributes

const int FunctionDescriptionRole = Qt::UserRole
const int IsImportRole = Qt::UserRole + 1