From b8e34cb1a2dc4f8ea7c271cec2ddea3282a0dfee Mon Sep 17 00:00:00 2001 From: Paolo Cignoni cignoni Date: Mon, 26 Mar 2007 08:24:10 +0000 Subject: [PATCH] When a user minimizes the window using a shortcut that uses modifiers (alt, ctrl, shift), the state of the button remained "pressed" after the window was reraised. Added a hideevent which resets the button state. --- src/meshlab/glarea.cpp | 8 ++++++++ src/meshlab/glarea.h | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/src/meshlab/glarea.cpp b/src/meshlab/glarea.cpp index f407ad01d..bfdca409e 100644 --- a/src/meshlab/glarea.cpp +++ b/src/meshlab/glarea.cpp @@ -24,6 +24,9 @@ History $Log$ +Revision 1.119 2007/03/26 08:24:10 zifnab1974 +When a user minimizes the window using a shortcut that uses modifiers (alt, ctrl, shift), the state of the button remained "pressed" after the window was reraised. Added a hideevent which resets the button state. + Revision 1.118 2007/03/20 16:22:34 cignoni Big small change in accessing mesh interface. First step toward layers @@ -865,3 +868,8 @@ void GLArea::updateFps(float deltaTime) void GLArea::resetTrackBall(){trackball.Reset();updateGL();} +void GLArea::hideEvent(QHideEvent * /*event*/) +{ + trackball.current_button=0; +} + diff --git a/src/meshlab/glarea.h b/src/meshlab/glarea.h index faede6c00..bde8b43bc 100644 --- a/src/meshlab/glarea.h +++ b/src/meshlab/glarea.h @@ -24,6 +24,9 @@ History $Log$ +Revision 1.72 2007/03/26 08:24:10 zifnab1974 +When a user minimizes the window using a shortcut that uses modifiers (alt, ctrl, shift), the state of the button remained "pressed" after the window was reraised. Added a hideevent which resets the button state. + Revision 1.71 2007/03/09 11:08:09 mariolatronico Removed unnecessary modifier @@ -307,6 +310,8 @@ protected: void wheelEvent(QWheelEvent*e); bool drawSelection; + void hideEvent(QHideEvent * event); + private: void pasteTile();