#endif
static bool GENERATE_SUIT_EVENTS = false;
-static bool FOCUS_UNDER_MOUSE = false;
//----------------------------------------------------------------------------
QVTK_RenderWindowInteractor
::mouseMoveEvent( QMouseEvent* event )
{
- if(FOCUS_UNDER_MOUSE && qApp->focusWidget() != this)
- setFocus();
-
GetDevice()->SetEventInformationFlipY(event->x(),
event->y(),
event->state() & ControlButton,
if(false && qApp->focusWidget() != this)
myPreviousFocusWidget = qApp->focusWidget();
- QWidget::setFocus();
-
GetDevice()->EnterEvent();
}
QVTK_RenderWindowInteractor
::leaveEvent( QEvent * )
{
- if(false && myPreviousFocusWidget)
- myPreviousFocusWidget->setFocus();
-
GetDevice()->LeaveEvent();
}