]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
To avoid view blinking
authorapo <apo@opencascade.com>
Tue, 8 Nov 2005 12:27:10 +0000 (12:27 +0000)
committerapo <apo@opencascade.com>
Tue, 8 Nov 2005 12:27:10 +0000 (12:27 +0000)
src/SVTK/SVTK_RenderWindowInteractor.cxx

index 000d592f2ff522c7707285b05770a26c35162bd3..0119104ca4cc3db70303aea3734aaf2924b438cf 100644 (file)
@@ -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();
 }