Go to the documentation of this file.
13 #ifndef CREMESSAGEITEMMODEL_H
14 #define CREMESSAGEITEMMODEL_H
19 #include <QAbstractItemModel>
38 virtual QModelIndex
index(
int row,
int column,
const QModelIndex&
parent)
const override;
39 virtual QModelIndex
parent(
const QModelIndex&
index)
const override;
41 virtual QVariant
data(
const QModelIndex&
index,
int role)
const override;
42 virtual QVariant
headerData(
int section, Qt::Orientation orientation,
int role)
const override;
43 virtual Qt::ItemFlags
flags(
const QModelIndex&
index)
const override;
44 virtual bool setData(
const QModelIndex&
index,
const QVariant&
value,
int role = Qt::EditRole)
override;
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const override
virtual bool insertRows(int row, int count, const QModelIndex &parent=QModelIndex()) override
virtual QVariant data(const QModelIndex &index, int role) const override
void setMessage(MessageFile *message)
void moveUpDown(int row, bool up)
virtual ~CREMessageItemModel()
CREMessageItemModel(QObject *parent)
virtual bool removeRows(int row, int count, const QModelIndex &parent=QModelIndex()) override
virtual int columnCount(const QModelIndex &parent) const override
virtual int rowCount(const QModelIndex &parent) const override
virtual Qt::ItemFlags flags(const QModelIndex &index) const override
void setSelectedRule(const QModelIndex &index)
virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const override
virtual QModelIndex parent(const QModelIndex &index) const override
virtual bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
void duplicateRow(int row)