19 #ifndef CQReferenceDM_H
20 #define CQReferenceDM_H
26 #define COL_RESOURCE_REFERENCE 1
27 #define COL_ID_REFERENCE 2
28 #define COL_DESCRIPTION 3
29 #define TOTAL_COLS_REFERENCES 4
37 virtual int rowCount(
const QModelIndex &parent = QModelIndex())
const;
38 virtual int columnCount(
const QModelIndex &parent = QModelIndex())
const;
39 QVariant
data(
const QModelIndex &index,
int role)
const;
40 QVariant
headerData(
int section, Qt::Orientation orientation,
41 int role = Qt::DisplayRole)
const;
42 bool setData(
const QModelIndex &index,
const QVariant &value,
43 int role = Qt::EditRole);
44 bool removeRows(QModelIndexList rows,
const QModelIndex &index = QModelIndex());
47 bool insertRows(
int position,
int rows,
const QModelIndex &index = QModelIndex());
48 bool removeRows(
int position,
int rows,
const QModelIndex &index = QModelIndex());
52 #endif //CQReferenceDM_H
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
QVariant data(const QModelIndex &index, int role) const
CMIRIAMInfo * mpMIRIAMInfo
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const
bool insertRows(int position, int rows, const QModelIndex &index=QModelIndex())
bool removeRows(QModelIndexList rows, const QModelIndex &index=QModelIndex())
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
CQReferenceDM(CMIRIAMInfo *MIRIAMInfo, QObject *parent=0)