VisLU Flow 0.1

src/ColorPicker/qtclickablefield.h

00001 #ifndef QTCLICKABLEFIELD_H
00002 #define QTCLICKABLEFIELD_H
00003 
00004 #include <QWidget>
00005 #include <QLabel>
00006 
00007 class QtClickableField : public QWidget
00008 {
00009     Q_OBJECT
00010 
00011 Q_SIGNALS:
00012     void clicked();
00013 
00014 public:
00015     QtClickableField(QWidget *parent = 0);
00016     ~QtClickableField();
00017 protected:
00018     void paintEvent(QPaintEvent *);
00019     void mousePressEvent(QMouseEvent *);
00020 private:
00021     QLabel *label;
00022 };
00023 
00024 #endif // QTCLICKABLEFIELD_H
 All Classes Functions Variables