19 #ifndef CQFunctionDM_H
20 #define CQFunctionDM_H
26 #define COL_NAME_FUNCTIONS 1
27 #define COL_TYPE_FUNCTIONS 2
28 #define COL_MATH_DESC_FUNCTIONS 3
29 #define COL_SBML_ID_FUNCTIONS 4
30 #define TOTAL_COLS_FUNCTIONS 5
38 virtual int rowCount(
const QModelIndex &parent = QModelIndex())
const;
39 virtual int columnCount(
const QModelIndex &parent = QModelIndex())
const;
40 Qt::ItemFlags
flags(
const QModelIndex &index)
const;
41 QVariant
data(
const QModelIndex &index,
int role)
const;
42 QVariant
headerData(
int section, Qt::Orientation orientation,
43 int role = Qt::DisplayRole)
const;
44 bool setData(
const QModelIndex &index,
const QVariant &value,
45 int role = Qt::EditRole);
46 bool removeRows(QModelIndexList rows,
const QModelIndex &index = QModelIndex());
49 bool insertRows(
int position,
int rows,
const QModelIndex &index = QModelIndex());
50 bool removeRows(
int position,
int rows,
const QModelIndex &index = QModelIndex());
56 #endif //CQFunctionDM_H
CQFunctionDM(QObject *parent=0)
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
bool isFunctionReadOnly(const QModelIndex &index) const
bool removeRows(QModelIndexList rows, const QModelIndex &index=QModelIndex())
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const
QVariant data(const QModelIndex &index, int role) const
bool insertRows(int position, int rows, const QModelIndex &index=QModelIndex())
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
Qt::ItemFlags flags(const QModelIndex &index) const