From: apo Date: Tue, 8 Nov 2005 12:27:10 +0000 (+0000) Subject: To avoid view blinking X-Git-Tag: TG-D5-38-2003_D2005-29-12~29 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6c8be09539823ebe515332fe3eef185cd0b98b25;p=modules%2Fgui.git To avoid view blinking --- diff --git a/src/SVTK/SVTK_RenderWindowInteractor.cxx b/src/SVTK/SVTK_RenderWindowInteractor.cxx index 000d592f2..0119104ca 100644 --- a/src/SVTK/SVTK_RenderWindowInteractor.cxx +++ b/src/SVTK/SVTK_RenderWindowInteractor.cxx @@ -68,7 +68,6 @@ static int MYVTKDEBUG = 0; #endif static bool GENERATE_SUIT_EVENTS = false; -static bool FOCUS_UNDER_MOUSE = false; //---------------------------------------------------------------------------- @@ -226,9 +225,6 @@ void QVTK_RenderWindowInteractor ::mouseMoveEvent( QMouseEvent* event ) { - if(FOCUS_UNDER_MOUSE && qApp->focusWidget() != this) - setFocus(); - GetDevice()->SetEventInformationFlipY(event->x(), event->y(), event->state() & ControlButton, @@ -320,8 +316,6 @@ QVTK_RenderWindowInteractor if(false && qApp->focusWidget() != this) myPreviousFocusWidget = qApp->focusWidget(); - QWidget::setFocus(); - GetDevice()->EnterEvent(); } @@ -330,9 +324,6 @@ void QVTK_RenderWindowInteractor ::leaveEvent( QEvent * ) { - if(false && myPreviousFocusWidget) - myPreviousFocusWidget->setFocus(); - GetDevice()->LeaveEvent(); }