From 6c8be09539823ebe515332fe3eef185cd0b98b25 Mon Sep 17 00:00:00 2001 From: apo Date: Tue, 8 Nov 2005 12:27:10 +0000 Subject: [PATCH] To avoid view blinking --- src/SVTK/SVTK_RenderWindowInteractor.cxx | 9 --------- 1 file changed, 9 deletions(-) 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(); } -- 2.39.2