diff options
| author | Roopesh Chander <roop@forwardbias.in> | 2009-11-13 14:49:39 +0530 |
|---|---|---|
| committer | Roopesh Chander <roop@forwardbias.in> | 2009-11-13 16:01:57 +0530 |
| commit | 8b453b01e4a98c2d0db1e7ce713f825790ad2ed5 (patch) | |
| tree | 59a1b5aa66608fde0808afd6b30f7d951043ba49 /graphicstoolbar.h | |
| parent | e234cb2dac3521ba5093005c281220fa85de42b8 (diff) | |
don't blur the toolbar when we're using the Locate combo box
Diffstat (limited to 'graphicstoolbar.h')
| -rw-r--r-- | graphicstoolbar.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/graphicstoolbar.h b/graphicstoolbar.h index a8cc4c2..2a56d7a 100644 --- a/graphicstoolbar.h +++ b/graphicstoolbar.h @@ -9,6 +9,16 @@ #include <QGraphicsRotation> #include <QState> #include <QStateMachine> +#include <QEventTransition> + +class HoverOutEventTransition : public QEventTransition { +public: + HoverOutEventTransition(QObject *object, QEvent::Type type, QState *sourceState = 0) + : QEventTransition(object, type, sourceState) { + } +protected: + virtual bool eventTest(QEvent *e); +}; class GraphicsToolBar : public QGraphicsWidget { @@ -40,6 +50,8 @@ private: int m_fillLevel; QGraphicsRotation *m_rotation; QStateMachine m_stateMachine; + HoverOutEventTransition *m_makeBlurred; + QEventTransition *m_makeNormal; }; #endif // GRAPHICSTOOLBAR_H |
