qse  0.5.4
qsescanaveragermodel.h
Go to the documentation of this file.
1 #ifndef QSESCANAVERAGERMODEL_H
2 #define QSESCANAVERAGERMODEL_H
3 
4 #include <QAbstractTableModel>
5 
6 class QseScanAverager;
7 class QTableView;
8 
9 class QseScanAveragerModel : public QAbstractTableModel
10 {
11  Q_OBJECT;
12 
13  typedef QAbstractTableModel inherited;
14 
15  public:
16  QseScanAveragerModel(QseScanAverager *averager, QTableView *table, QObject *parent=0);
17 
18  int rowCount(const QModelIndex &parent = QModelIndex()) const;
19  int columnCount(const QModelIndex &parent = QModelIndex()) const;
20 
21  QVariant data(const QModelIndex &index, int role) const;
22  QVariant headerData(int section, Qt::Orientation orientation,
23  int role = Qt::DisplayRole) const;
24  public slots:
25  void operationCompleted();
26  void dataChanged();
27  void dataCleared();
28  void scanAdded(int n);
29 
30  private:
32  QTableView *m_TableView;
33  mutable int m_PrevRowCount;
34  mutable int m_PrevColumnCount;
35 };
36 
37 #endif
QAbstractTableModel inherited
int columnCount(const QModelIndex &parent=QModelIndex()) const
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
QseScanAveragerModel(QseScanAverager *averager, QTableView *table, QObject *parent=0)
QseScanAverager * m_ScanAverager
int rowCount(const QModelIndex &parent=QModelIndex()) const
QVariant data(const QModelIndex &index, int role) const