FunctionModel
class FunctionModel : public AddressableItemModel<>
Public Types
enum Column
Values:
enumerator NameColumn
enumerator SizeColumn
enumerator ImportColumn
enumerator OffsetColumn
enumerator NargsColumn
enumerator NlocalsColumn
enumerator NbbsColumn
enumerator CalltypeColumn
enumerator EdgesColumn
enumerator FrameColumn
enumerator CommentColumn
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()
Returns
true if the index changed
void setNested(bool nested)
inline bool isNested()
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.
Public Static Attributes
static const int FunctionDescriptionRole = Qt::UserRole
static const int IsImportRole = Qt::UserRole + 1