8 : QAbstractTableModel(parent),
13 connect(dataSet, SIGNAL(operationCompleted()),
14 this, SLOT(operationCompleted()));
32 if (parent.column() > 0) {
66 if (!index.isValid()) {
70 if (role != Qt::DisplayRole) {
74 int row = index.row();
75 int col = index.column();
81 return scan -> name();
84 return scan -> maxRowCount();
102 (
int section, Qt::Orientation orientation,
int role)
const
104 if (orientation == Qt::Horizontal && role == Qt::DisplayRole) {
116 return tr(
"Col %1").arg(section-3);
120 if (orientation == Qt::Vertical && role == Qt::DisplayRole) {
QseScan * scan(int n) const
QVariant data(const QModelIndex &index, int role) const
int columnCount(const QModelIndex &parent=QModelIndex()) const
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
QseDataSetModel(QseDataSet *dataSet, QObject *parent=0)
int rowCount(const QModelIndex &parent=QModelIndex()) const
int maxColumnCount() const
QseColumn * column(int n) const