17 return scan->rowCount();
28 return scan->columnCount();
36 QVariant res = QVariant();
38 if (role == Qt::DisplayRole) {
39 if (index.isValid()) {
46 return col->value(index.row());
57 QVariant res = QVariant();
59 if (role == Qt::DisplayRole) {
60 if (orientation==Qt::Horizontal) {
67 res = col->get_Name();
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
QSharedPointer< QcepDataColumnScan > QcepDataColumnScanPtr
QcepDataColumnScanSpreadsheetModel(QcepDataColumnScanWPtr scan)
int columnCount(const QModelIndex &parent=QModelIndex()) const
QSharedPointer< QcepDataColumn > QcepDataColumnPtr
QWeakPointer< QcepDataColumnScan > QcepDataColumnScanWPtr
int rowCount(const QModelIndex &parent=QModelIndex()) const
QcepDataColumnScanWPtr m_Scan
QVariant headerData(int section, Qt::Orientation orientation, int role) const