From e3708b77b95abc7fb2ee8114b0340e4647cdd634 Mon Sep 17 00:00:00 2001 From: vsv Date: Mon, 19 Aug 2019 12:41:28 +0300 Subject: [PATCH] Message for dragging debug --- src/PartSet/PartSet_SketcherMgr.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index 36dfb30b4..e9d0f12a9 100644 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -577,6 +577,11 @@ void PartSet_SketcherMgr::onMouseMoved(ModuleBase_IViewWindow* theWnd, QMouseEve if (isSketchOperation(aCurrentOperation)) return; // No edit operation activated +#ifdef DRAGGING_DEBUG + QTime t; + t.start(); +#endif + Handle(V3d_View) aView = theWnd->v3dView(); gp_Pnt aPoint = PartSet_Tools::convertClickToPoint(theEvent->pos(), aView); Point aMousePnt; @@ -663,6 +668,10 @@ void PartSet_SketcherMgr::onMouseMoved(ModuleBase_IViewWindow* theWnd, QMouseEve aDisplayer->enableUpdateViewer(isEnableUpdateViewer); aDisplayer->updateViewer(); +#ifdef DRAGGING_DEBUG + cout << "Mouse move processing " << t.elapsed() << endl; +#endif + myDragDone = true; myCurrentPoint = aMousePnt; } -- 2.39.2