15 #ifndef BORNAGAIN_GUI_VIEW_JOB_JOBPROPERTIESTABLEMODEL_H
16 #define BORNAGAIN_GUI_VIEW_JOB_JOBPROPERTIESTABLEMODEL_H
18 #include <QAbstractTableModel>
31 int rowCount(
const QModelIndex& parent = QModelIndex())
const override;
32 int columnCount(
const QModelIndex& parent = QModelIndex())
const override;
33 QVariant
data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const override;
34 QVariant
headerData(
int section, Qt::Orientation orientation,
35 int role = Qt::DisplayRole)
const override;
36 Qt::ItemFlags
flags(
const QModelIndex& index)
const override;
37 bool setData(
const QModelIndex& index,
const QVariant& value,
int role = Qt::EditRole)
override;
The JobPropertiesTableModel is a table model for the properties of a job except for the comment....
Qt::ItemFlags flags(const QModelIndex &index) const override
JobPropertiesTableModel(QObject *parent=nullptr)
~JobPropertiesTableModel() override
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
int rowCount(const QModelIndex &parent=QModelIndex()) const override
void notifyJobPropertyChange()
int columnCount(const QModelIndex &parent=QModelIndex()) const override
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
void setItem(JobItem *item)