From: nds Date: Mon, 12 May 2014 09:19:52 +0000 (+0400) Subject: refs #30 - Sketch base GUI: create, draw lines X-Git-Tag: V_0.2~73^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=591a1ca003770dc1cc79fd489f819a9356b54602;p=modules%2Fshaper.git refs #30 - Sketch base GUI: create, draw lines Mouse released should be performed after the viewer's selection is made in the context --- diff --git a/src/XGUI/XGUI_Viewer.cpp b/src/XGUI/XGUI_Viewer.cpp index de3a58374..6fae264d2 100644 --- a/src/XGUI/XGUI_Viewer.cpp +++ b/src/XGUI/XGUI_Viewer.cpp @@ -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(); }