LcdSpinBox: check for mouse button in mouseReleaseEvent()

Otherwise we restore things that were never changed when releasing right
or middle mouse button.

Closes #358.
This commit is contained in:
Tobias Doerffel
2014-02-20 21:44:26 +01:00
parent 2049e00901
commit e6883e7743
2 changed files with 14 additions and 7 deletions

View File

@@ -72,6 +72,7 @@ protected:
virtual void wheelEvent( QWheelEvent * _we );
private:
bool m_mouseMoving;
QPoint m_origMousePos;
int m_displayOffset;