#include <qsedatasetmodel.h>
|
| QseDataSetModel (QseDataSet *dataSet, QObject *parent=0) |
|
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
|
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
|
QVariant | data (const QModelIndex &index, int role) const |
|
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
|
Definition at line 9 of file qsedatasetmodel.h.
QseDataSetModel::QseDataSetModel |
( |
QseDataSet * |
dataSet, |
|
|
QObject * |
parent = 0 |
|
) |
| |
Definition at line 7 of file qsedatasetmodel.cpp.
8 : QAbstractTableModel(parent),
13 connect(dataSet, SIGNAL(operationCompleted()),
14 this, SLOT(operationCompleted()));
int QseDataSetModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
QVariant QseDataSetModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
Definition at line 64 of file qsedatasetmodel.cpp.
References QseScan::column(), columnCount(), m_DataSet, and QseDataSet::scan().
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();
QseScan * scan(int n) const
int columnCount(const QModelIndex &parent=QModelIndex()) const
QseColumn * column(int n) const
void QseDataSetModel::dataChanged |
( |
| ) |
|
|
slot |
void QseDataSetModel::dataCleared |
( |
| ) |
|
|
slot |
QVariant QseDataSetModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
Definition at line 102 of file qsedatasetmodel.cpp.
104 if (orientation == Qt::Horizontal && role == Qt::DisplayRole) {
116 return tr(
"Col %1").arg(section-3);
120 if (orientation == Qt::Vertical && role == Qt::DisplayRole) {
int QseDataSetModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
void QseDataSetModel::scanAdded |
( |
int |
n | ) |
|
|
slot |
int QseDataSetModel::m_NScans |
|
private |
The documentation for this class was generated from the following files: