qse  0.5.4
qsegraphcolumnsmodel.h
Go to the documentation of this file.
1 #ifndef QSEGRAPHCOLUMNSMODEL_H
2 #define QSEGRAPHCOLUMNSMODEL_H
3 
4 #include <QAbstractTableModel>
5 
6 class QseDataSet;
8 class QTableView;
9 
10 class QseGraphColumnsModel : public QAbstractTableModel
11 {
12  Q_OBJECT;
13 
14  typedef QAbstractTableModel inherited;
15 
16  public:
18  (QseGraphController *controller,
19  QTableView *table,
20  QObject *parent=0);
21 
22  int rowCount(const QModelIndex &parent = QModelIndex()) const;
23  int columnCount(const QModelIndex &parent = QModelIndex()) const;
24 
25  QVariant data(const QModelIndex &index, int role) const;
26  QVariant headerData(int section, Qt::Orientation orientation,
27  int role = Qt::DisplayRole) const;
28 
29  void columnsChanged();
30  void emitDataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight);
31 
32 /* public slots: */
33 /* void dataChanged(); */
34 
35  private:
38  QTableView *m_TableView;
39 };
40 
41 #endif
QVariant data(const QModelIndex &index, int role) const
QseGraphColumnsModel(QseGraphController *controller, QTableView *table, QObject *parent=0)
QseGraphController * m_Controller
int columnCount(const QModelIndex &parent=QModelIndex()) const
void emitDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
QAbstractTableModel inherited
int rowCount(const QModelIndex &parent=QModelIndex()) const
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const