]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
refs #30 - Sketch base GUI: create, draw lines
authornds <natalia.donis@opencascade.com>
Mon, 12 May 2014 09:19:52 +0000 (13:19 +0400)
committernds <natalia.donis@opencascade.com>
Mon, 12 May 2014 09:19:52 +0000 (13:19 +0400)
Mouse released should be performed after the viewer's selection is made in the context

src/XGUI/XGUI_Viewer.cpp

index de3a583746bc0e95608ba2f6df8a5adecbd7aa2a..6fae264d21ecb374d75d66595d6f7495c2c42811 100644 (file)
@@ -428,9 +428,6 @@ void XGUI_Viewer::addView(QMdiSubWindow* theView)
     connect(aWindow, SIGNAL(mousePressed(XGUI_ViewWindow*, QMouseEvent*)),
             this,    SLOT(onMousePressed(XGUI_ViewWindow*, QMouseEvent*)));
 
-    connect(aWindow, SIGNAL(mouseReleased(XGUI_ViewWindow*, QMouseEvent*)),
-            this,    SIGNAL(mouseRelease(XGUI_ViewWindow*, QMouseEvent*)));
-
     connect(aWindow, SIGNAL(mouseDoubleClicked(XGUI_ViewWindow*, QMouseEvent*)),
             this,    SIGNAL(mouseDoubleClick(XGUI_ViewWindow*, QMouseEvent*)));
 
@@ -551,6 +548,7 @@ void XGUI_Viewer::onMouseReleased(XGUI_ViewWindow* theWindow, QMouseEvent* theEv
 
     myAISContext->UpdateCurrentViewer();
   }
+  emit mouseRelease(theWindow, theEvent);
   emit selectionChanged();
 }