MNE-CPP  beta 1.0
cluststctabledelegate.h
Go to the documentation of this file.
1 //=============================================================================================================
36 #ifndef CLUSTSTCTABLEDELEGATE_H
37 #define CLUSTSTCTABLEDELEGATE_H
38 
39 //*************************************************************************************************************
40 //=============================================================================================================
41 // INCLUDES
42 //=============================================================================================================
43 
44 #include "../disp3D_global.h"
45 
46 
47 //*************************************************************************************************************
48 //=============================================================================================================
49 // Qt INCLUDES
50 //=============================================================================================================
51 
52 #include <QAbstractItemDelegate>
53 #include <QSharedPointer>
54 
55 
56 //*************************************************************************************************************
57 //=============================================================================================================
58 // DEFINE NAMESPACE DISP3DLIB
59 //=============================================================================================================
60 
61 namespace DISP3DLIB
62 {
63 
64 //=============================================================================================================
70 class DISP3DSHARED_EXPORT ClustStcTableDelegate : public QAbstractItemDelegate
71 {
72  Q_OBJECT
73 public:
74  typedef QSharedPointer<ClustStcTableDelegate> SPtr;
75  typedef QSharedPointer<const ClustStcTableDelegate> ConstSPtr;
77  ClustStcTableDelegate(QObject *parent = 0);
78 
79  //=========================================================================================================
89  virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
90 
91  //=========================================================================================================
98  virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
99 
100 private:
101 
102 };
103 
104 } // NAMESPACE
105 
106 #endif // CLUSTSTCTABLEDELEGATE_H
QSharedPointer< ClustStcTableDelegate > SPtr
QSharedPointer< const ClustStcTableDelegate > ConstSPtr
#define DISP3DSHARED_EXPORT
Definition: disp3D_global.h:57