19 #ifndef CQGlobalQuantityDM_H
20 #define CQGlobalQuantityDM_H
27 #define COL_INITIAL_GQ 3
28 #define COL_TRANSIENT_GQ 4
30 #define COL_IEXPRESSION_GQ 6
31 #define COL_EXPRESSION_GQ 7
32 #define TOTAL_COLS_GQ 8
42 int virtual rowCount(
const QModelIndex &parent = QModelIndex())
const;
43 int virtual columnCount(
const QModelIndex &parent = QModelIndex())
const;
44 Qt::ItemFlags
flags(
const QModelIndex &index)
const;
45 QVariant
data(
const QModelIndex &index,
int role)
const;
46 QVariant
headerData(
int section, Qt::Orientation orientation,
47 int role = Qt::DisplayRole)
const;
48 bool setData(
const QModelIndex &index,
const QVariant &value,
49 int role = Qt::EditRole);
50 bool removeRows(QModelIndexList rows,
const QModelIndex &index = QModelIndex());
58 bool insertRows(
int position,
int rows,
const QModelIndex &index = QModelIndex());
59 bool removeRows(
int position,
int rows,
const QModelIndex &index = QModelIndex());
62 #endif //CQGlobalQuantityDM_H
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const
const QStringList & getTypes()
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
QVariant data(const QModelIndex &index, int role) const
CQGlobalQuantityDM(QObject *parent=0)
Qt::ItemFlags flags(const QModelIndex &index) const
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
bool removeRows(QModelIndexList rows, const QModelIndex &index=QModelIndex())
std::vector< unsigned C_INT32 > mItemToType
const std::vector< unsigned C_INT32 > & getItemToType()
bool insertRows(int position, int rows, const QModelIndex &index=QModelIndex())