#include <qsescanaveragermodel.h>
|
| QseScanAveragerModel (QseScanAverager *averager, QTableView *table, 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 qsescanaveragermodel.h.
QseScanAveragerModel::QseScanAveragerModel |
( |
QseScanAverager * |
averager, |
|
|
QTableView * |
table, |
|
|
QObject * |
parent = 0 |
|
) |
| |
int QseScanAveragerModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
QVariant QseScanAveragerModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
Definition at line 71 of file qsescanaveragermodel.cpp.
References QseScan::column(), columnCount(), and m_ScanAverager.
75 if (!index.isValid()) {
79 if (role == Qt::DisplayRole) {
81 int row = index.row();
82 int col = index.column();
88 return scan -> name();
91 return scan -> maxRowCount();
int columnCount(const QModelIndex &parent=QModelIndex()) const
QseScanAverager * m_ScanAverager
QseColumn * column(int n) const
void QseScanAveragerModel::dataChanged |
( |
| ) |
|
|
slot |
void QseScanAveragerModel::dataCleared |
( |
| ) |
|
|
slot |
QVariant QseScanAveragerModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
Definition at line 112 of file qsescanaveragermodel.cpp.
114 if (orientation == Qt::Horizontal && role == Qt::DisplayRole) {
126 return tr(
"Col %1").arg(section-3);
130 if (orientation == Qt::Vertical && role == Qt::DisplayRole) {
void QseScanAveragerModel::operationCompleted |
( |
| ) |
|
|
slot |
int QseScanAveragerModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
void QseScanAveragerModel::scanAdded |
( |
int |
n | ) |
|
|
slot |
int QseScanAveragerModel::m_PrevColumnCount |
|
mutableprivate |
int QseScanAveragerModel::m_PrevRowCount |
|
mutableprivate |
QTableView* QseScanAveragerModel::m_TableView |
|
private |
The documentation for this class was generated from the following files: