Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef BUTTONCLICKEFFECT
- #define BUTTONCLICKEFFECT
- #include <QtCore>
- #include <QPushButton>
- #include <QPainter>
- #include <QMouseEvent>
- class ButtonClickEffect : public QObject
- {
- Q_OBJECT
- public:
- explicit ButtonClickEffect(QObject *parent = 0);
- protected:
- virtual bool eventFilter(QObject *object, QEvent *event);
- public slots:
- void OnTick();
- private:
- QTimer *timer;
- float delta = -1.0f;
- };
- #endif // BUTTONCLICK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement