qse  0.5.4
qsedatasetmodel.h
Go to the documentation of this file.
1 #ifndef QSEDATASETMODEL_H
2 #define QSEDATASETMODEL_H
3 
4 #include <QAbstractItemModel>
5 #include <QAbstractTableModel>
6 
7 class QseDataSet;
8 
9 class QseDataSetModel : public QAbstractTableModel
10 {
11  Q_OBJECT;
12 
13  typedef QAbstractTableModel inherited;
14 
15  public:
16  QseDataSetModel(QseDataSet *dataSet, 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 /* Qt::ItemFlags flags ( const QModelIndex & index ) const; */
26 
27 /* QModelIndex index(int row, int column, */
28 /* const QModelIndex &parent = QModelIndex()) const; */
29 
30 /* QModelIndex parent(const QModelIndex &parent) const; */
31 
32 /* bool insertRows(int row, int count, */
33 /* const QModelIndex &parent = QModelIndex()); */
34 /* bool removeRows(int row, int count, */
35 /* const QModelIndex & parent = QModelIndex()); */
36 /* bool insertColumns(int col, int count, */
37 /* const QModelIndex &parent = QModelIndex()); */
38 /* bool removeColumns(int col, int count, */
39 /* const QModelIndex & parent = QModelIndex()); */
40 
41  public slots:
42  void dataChanged();
43  void dataCleared();
44  void scanAdded(int n);
45 
46  private:
48  int m_NScans;
49 };
50 
51 #endif
52 
53 
QVariant data(const QModelIndex &index, int role) const
QseDataSet * m_DataSet
int columnCount(const QModelIndex &parent=QModelIndex()) const
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
void scanAdded(int n)
QseDataSetModel(QseDataSet *dataSet, QObject *parent=0)
QAbstractTableModel inherited
int rowCount(const QModelIndex &parent=QModelIndex()) const