CommentsModel

class CommentsModel

Public Types

enum Column

Values:

OffsetColumn = 0
FunctionColumn
CommentColumn
ColumnCount
enum NestedColumn

Values:

OffsetNestedColumn = 0
CommentNestedColumn
NestedColumnCount
enum Role

Values:

CommentDescriptionRole = Qt::UserRole
FunctionRole

Public Functions

CommentsModel(QList<CommentDescription> *comments, QMap<QString, QList<CommentDescription>> *nestedComments, QObject *parent)
QModelIndex index(int row, int column, const QModelIndex &parent) const
QModelIndex parent(const QModelIndex &index) const
int rowCount(const QModelIndex &parent) const
int columnCount(const QModelIndex &parent) const
QVariant data(const QModelIndex &index, int role) const
QVariant headerData(int section, Qt::Orientation orientation, int role) const
bool isNested() const
void setNested(bool nested)