29 QVariant res = QVariant();
31 if (role == Qt::DisplayRole) {
32 if (index.isValid()) {
36 if (index.column() == 0) {
37 res = integ->x(index.row());
38 }
else if (index.column() == 1) {
39 res = integ->y(index.row());
50 QVariant res = QVariant();
52 if (role == Qt::DisplayRole) {
53 if (orientation == Qt::Horizontal) {
56 }
else if (section == 1) {
int columnCount(const QModelIndex &parent=QModelIndex()) const
QcepIntegratedDataWPtr m_Integrated
QVariant headerData(int section, Qt::Orientation orientation, int role) const
int rowCount(const QModelIndex &parent=QModelIndex()) const
QSharedPointer< QcepIntegratedData > QcepIntegratedDataPtr
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
QWeakPointer< QcepIntegratedData > QcepIntegratedDataWPtr
QcepIntegratedDataSpreadsheetModel(QcepIntegratedDataWPtr integ)