qse  0.5.4
qsegraphscansmodel.h
Go to the documentation of this file.
1 #ifndef QSEGRAPHSCANSMODEL_H
2 #define QSEGRAPHSCANSMODEL_H
3 
4 #include <QAbstractTableModel>
5 
6 class QseDataSet;
7 class QTableView;
8 
9 class QseGraphScansModel : public QAbstractTableModel
10 {
11  Q_OBJECT;
12 
13  typedef QAbstractTableModel inherited;
14 
15  public:
16  QseGraphScansModel(QseDataSet *dataSet, 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 
25  QModelIndex indexOfScan(int n);
26 
27  public slots:
28  void operationCompleted();
29 
30  private:
31  bool scanSelected(int s);
32 
33  private:
35  QTableView *m_TableView;
36  mutable int m_PrevRowCount;
37  mutable int m_PrevColumnCount;
38 };
39 
40 #endif
41 
42 
QTableView * m_TableView
QseGraphScansModel(QseDataSet *dataSet, QTableView *table, QObject *parent=0)
QAbstractTableModel inherited
int columnCount(const QModelIndex &parent=QModelIndex()) const
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
QModelIndex indexOfScan(int n)
QVariant data(const QModelIndex &index, int role) const
int rowCount(const QModelIndex &parent=QModelIndex()) const