16 const QModelIndex &parent)
const
26 res = dg->childCount();
40 const QModelIndex &parent)
const
46 int section, Qt::Orientation orientation,
int role)
const
50 if (orientation==Qt::Horizontal && role==Qt::DisplayRole) {
74 const QModelIndex &index,
int role)
const
77 int c = index.column();
90 if (role == Qt::DisplayRole && c == 0) {
91 res = o->objectName();
92 }
else if (role == Qt::CheckStateRole) {
106 if (role == Qt::DisplayRole && c == 0) {
109 res = integ->get_XUnitsLabel();
116 }
else if (role == Qt::CheckStateRole) {
135 int c = index.column();
139 if (r >= 0 && r < nr) {
152 return m_X.value(row);
157 return m_Y.value(row);
162 return m_Y2.value(row);
169 if (row >= 0 && row < nr) {
170 for (
int i=0; i<nr; i++) {
176 emit dataChanged(index(0,1), index(nr-1,1));
184 if (row >= 0 && row < nr) {
187 emit dataChanged(index(row,2), index(row,2));
195 if (row >= 0 && row < nr) {
198 emit dataChanged(index(row,3), index(row,3));
207 return Qt::Unchecked;
int columnCount(const QModelIndex &parent) const
QSharedPointer< QcepDataGroup > QcepDataGroupPtr
int checkState(bool val) const
QVariant data(const QModelIndex &index, int role) const
QVariant headerData(int section, Qt::Orientation orientation, int role) const
QSharedPointer< QcepIntegratedData > QcepIntegratedDataPtr
bool getY2(int row) const
QWeakPointer< QcepDataObject > QcepDataObjectWPtr
QcepDataObjectWPtr m_Object
void toggle(const QModelIndex &index)
QcepScatterPlotGraphModel(QcepDataObjectWPtr object)
QSharedPointer< QcepDataObject > QcepDataObjectPtr
int rowCount(const QModelIndex &parent) const