ImportsModel

class ImportsModel : public AddressableItemModel<QAbstractTableModel>

Public Types

enum Column

Values:

enumerator AddressColumn = 0
enumerator TypeColumn
enumerator LibraryColumn
enumerator NameColumn
enumerator SafetyColumn
enumerator ColumnCount
enum Role

Values:

enumerator ImportDescriptionRole = Qt::UserRole
enumerator AddressRole

Public Functions

ImportsModel(QList<ImportDescription> *imports, 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
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

QString libname(const QModelIndex &index) const