myButtonState |= me->button(); /* add release button */
added in event filter to provide proper reaction on MouseRelease event
if ( e->type() == QEvent::MouseButtonPress )
myButtonState |= me->button(); /* add pressed button */
+ if ( e->type() == QEvent::MouseButtonRelease )
+ myButtonState |= me->button(); /* add release button */
+
int mouseOnlyState = ( myButtonState & ( Qt::LeftButton | Qt::MidButton | Qt::RightButton ) );
if ( myStart.isNull() )
{