16 return col->rowCount();
29 QVariant res = QVariant();
31 if (role == Qt::DisplayRole) {
32 if (index.isValid()) {
33 if (index.column() == 0) {
37 res = col->value(index.row());
48 QVariant res = QVariant();
51 if (role == Qt::DisplayRole) {
52 if (orientation == Qt::Horizontal) {
57 res = col->get_Name();
QSharedPointer< QcepDataColumn > QcepDataColumnPtr
int columnCount(const QModelIndex &parent=QModelIndex()) const
QcepDataColumnSpreadsheetModel(QcepDataColumnWPtr col)
QcepDataColumnWPtr m_Column
int rowCount(const QModelIndex &parent=QModelIndex()) const
QVariant headerData(int section, Qt::Orientation orientation, int role) const
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
QWeakPointer< QcepDataColumn > QcepDataColumnWPtr