QXRD  0.11.16
qcepscatterplotgraphmodel.h
Go to the documentation of this file.
1 #ifndef QCEPSCATTERPLOTGRAPHMODEL_H
2 #define QCEPSCATTERPLOTGRAPHMODEL_H
3 
4 #include <QAbstractTableModel>
5 #include "qcepdataobject-ptr.h"
6 
7 class QcepScatterPlotGraphModel : public QAbstractTableModel
8 {
9  Q_OBJECT
10 
11 public:
13 
14  int rowCount(const QModelIndex &parent) const;
15  int columnCount(const QModelIndex &parent) const;
16  QVariant headerData(int section, Qt::Orientation orientation, int role) const;
17  QVariant data(const QModelIndex &index, int role) const;
18 
19  void toggle(const QModelIndex &index);
20 
21  bool getX(int row) const;
22  bool getY(int row) const;
23  bool getY2(int row) const;
24 
25  void toggleX(int row);
26  void toggleY(int row);
27  void toggleY2(int row);
28 
29  int checkState(bool val) const;
30 
31 signals:
32 
33 private:
35  QVector<bool> m_X, m_Y, m_Y2;
36 };
37 
38 #endif // QCEPSCATTERPLOTGRAPHMODEL_H
int columnCount(const QModelIndex &parent) const
QVariant data(const QModelIndex &index, int role) const
QVariant headerData(int section, Qt::Orientation orientation, int role) const
QWeakPointer< QcepDataObject > QcepDataObjectWPtr
void toggle(const QModelIndex &index)
QcepScatterPlotGraphModel(QcepDataObjectWPtr object)
int rowCount(const QModelIndex &parent) const