From 591a1ca003770dc1cc79fd489f819a9356b54602 Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 12 May 2014 13:19:52 +0400 Subject: [PATCH] refs #30 - Sketch base GUI: create, draw lines Mouse released should be performed after the viewer's selection is made in the context --- src/XGUI/XGUI_Viewer.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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(); } -- 2.39.2