CommentsModel
class CommentsModel : public AddressableItemModel<>
Public Types
enum Column
Values:
enumerator OffsetColumn
enumerator FunctionColumn
enumerator CommentColumn
enumerator ColumnCount
enum NestedColumn
Values:
enumerator OffsetNestedColumn
enumerator CommentNestedColumn
enumerator NestedColumnCount
enum Role
Values:
enumerator CommentDescriptionRole
enumerator FunctionRole
Public Functions
CommentsModel(QList<CommentDescription> *comments, QList<CommentGroup> *nestedComments, 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 isNested() const
void setNested(bool nested)
virtual RVA address(const QModelIndex &index) const override