From: vsv Date: Tue, 23 Jul 2019 14:53:00 +0000 (+0300) Subject: Add message for dragging debug X-Git-Tag: VEDF2019Lot4~96 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=af66e50efdb0b4e9af0f980e91557e82e6fb69fb;p=modules%2Fshaper.git Add message for dragging debug --- diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index 40925340b..004bdaf88 100644 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -119,9 +119,14 @@ //#define DEBUG_DO_NOT_BY_ENTER //#define DEBUG_SKETCHER_ENTITIES //#define DEBUG_SKETCH_ENTITIES_ON_MOVE - +//#define DRAGGING_DEBUG //#define DEBUG_CURSOR + +#ifdef DRAGGING_DEBUG +#include +#endif + /// Fills attribute and result lists by the selected owner. In case if the attribute is found, /// by the owner shape, it is put to the list. Otherwise if type of owner shape is edge, /// put the function result as is to the list of results. @@ -512,6 +517,10 @@ void PartSet_SketcherMgr::onMouseMoved(ModuleBase_IViewWindow* theWnd, QMouseEve return; if (isNestedCreateOperation(getCurrentOperation(), activeSketch())) { +#ifdef DRAGGING_DEBUG + QTime t; + t.start(); +#endif // 1. perform the widget mouse move functionality and display the presentation // the mouse move should be processed in the widget, if it can in order to visualize correct // presentation. These widgets correct the feature attribute according to the mouse position @@ -531,6 +540,9 @@ void PartSet_SketcherMgr::onMouseMoved(ModuleBase_IViewWindow* theWnd, QMouseEve visualizeFeature(aFeature, aFOperation->isEditOperation(), canDisplayObject(aFeature)); } } +#ifdef DRAGGING_DEBUG + cout << "Mouse move processing " << t.elapsed() << endl; +#endif } //myClickedPoint.clear();