StringsModel

class StringsModel : public AddressableItemModel<QAbstractListModel>

Public Types

enum Column

Values:

enumerator OffsetColumn
enumerator StringColumn
enumerator TypeColumn
enumerator LengthColumn
enumerator SizeColumn
enumerator SectionColumn
enumerator CommentColumn
enumerator ColumnCount

Public Functions

StringsModel(QList<StringDescription> *strings, QObject *parent = nullptr)
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
virtual RVA address(const QModelIndex &index) const override
const StringDescription *description(const QModelIndex &index) const

Public Static Attributes

static const int StringDescriptionRole = Qt::UserRole