summaryrefslogtreecommitdiffstats
path: root/graphicstoolbar.h
diff options
context:
space:
mode:
authorRoopesh Chander <roop@forwardbias.in>2009-11-13 14:49:39 +0530
committerRoopesh Chander <roop@forwardbias.in>2009-11-13 16:01:57 +0530
commit8b453b01e4a98c2d0db1e7ce713f825790ad2ed5 (patch)
tree59a1b5aa66608fde0808afd6b30f7d951043ba49 /graphicstoolbar.h
parente234cb2dac3521ba5093005c281220fa85de42b8 (diff)
don't blur the toolbar when we're using the Locate combo box
Diffstat (limited to 'graphicstoolbar.h')
-rw-r--r--graphicstoolbar.h12
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