]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
To set focus to the corresponding view window on mouse wheel event
authorapo <apo@opencascade.com>
Fri, 3 Feb 2006 11:55:18 +0000 (11:55 +0000)
committerapo <apo@opencascade.com>
Fri, 3 Feb 2006 11:55:18 +0000 (11:55 +0000)
src/SVTK/SVTK_RenderWindowInteractor.cxx

index 27bad5b589b653ca8b8a012d6044f5a2a4321e6d..a2b8aa176ab3623824c19fa99080b5a5900bebba 100644 (file)
@@ -266,7 +266,10 @@ QVTK_RenderWindowInteractor
 void
 QVTK_RenderWindowInteractor
 ::wheelEvent( QWheelEvent* event )
-{}
+{
+  setActiveWindow();
+  setFocus();
+}
 
 
 //----------------------------------------------------------------------------
@@ -615,6 +618,7 @@ SVTK_RenderWindowInteractor
 ::wheelEvent( QWheelEvent* event )
 {
   QVTK_RenderWindowInteractor::wheelEvent(event);
+
   if(event->delta() > 0)
     GetDevice()->InvokeEvent(SVTK::ZoomInEvent,NULL);
   else