MNE-CPP  beta 1.0
averagedelegate.h
Go to the documentation of this file.
1 //=============================================================================================================
38 #ifndef AVERAGEDELEGATE_H
39 #define AVERAGEDELEGATE_H
40 
41 //*************************************************************************************************************
42 //=============================================================================================================
43 // INCLUDES
44 //=============================================================================================================
45 
46 #include "../Utils/types.h"
47 
48 
49 //*************************************************************************************************************
50 //=============================================================================================================
51 // QT INCLUDES
52 //=============================================================================================================
53 
54 #include <QItemDelegate>
55 
56 
57 //*************************************************************************************************************
58 //=============================================================================================================
59 // DEFINE NAMESPACE MNEBrowseRawQt
60 //=============================================================================================================
61 
62 namespace MNEBrowseRawQt
63 {
64 
65 
66 //=============================================================================================================
71 class AverageDelegate : public QItemDelegate
72 {
73  Q_OBJECT
74 public:
75  AverageDelegate(QObject *parent = 0);
76 
77  //=========================================================================================================
82  virtual void paint(QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index) const;
83 
84 protected:
85  //=========================================================================================================
92  void createPlotPath(const QModelIndex &index, const QStyleOptionViewItem &option, QPainterPath& path, QList<RowVectorPair>& listPairs) const;
93 };
94 
95 } //NAMESPACE
96 
97 #endif // AVERAGEDELEGATE_H
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
void createPlotPath(const QModelIndex &index, const QStyleOptionViewItem &option, QPainterPath &path, QList< RowVectorPair > &listPairs) const