X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=crazybutton.h;fp=crazybutton.h;h=d32310db32418b5f915e91a7f65d100b792d7f5d;hb=06a7dabc6c41f79397c03f4cc67a07beb7f20f80;hp=0000000000000000000000000000000000000000;hpb=82bd63ece2c1e1660ccaa12b46b54202725641d3;p=qmemory diff --git a/crazybutton.h b/crazybutton.h new file mode 100644 index 0000000..d32310d --- /dev/null +++ b/crazybutton.h @@ -0,0 +1,28 @@ +#ifndef CRAZYBUTTON_H +#define CRAZYBUTTON_H + +#include +#include + + +class CrazyButton : public QPushButton +{ + Q_OBJECT +public: + CrazyButton(QWidget *parent=0); + +public slots: + void changeColor(); +protected: + void mousePressEvent(QMouseEvent *e); + void mouseReleaseEvent(QMouseEvent *e); + /* + void focusInEvent(QFocusEvent *); + void focusOutEvent(QFocusEvent *); + */ +private: + bool col; + +}; + +#endif // CRAZYBUTTON_H