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.

This commit is contained in:
Paolo Cignoni cignoni 2007-03-26 08:24:10 +00:00
parent db3a96ae6d
commit b8e34cb1a2
2 changed files with 13 additions and 0 deletions

View File

@ -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;
}

View File

@ -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();