From: nds Date: Tue, 17 Nov 2015 10:49:06 +0000 (+0300) Subject: Hide run-time warning, define to debug the cross cursor in sketch. X-Git-Tag: V_2.0.0~32 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=60be99c279767587396827d10a230a74b79e1786;p=modules%2Fshaper.git Hide run-time warning, define to debug the cross cursor in sketch. --- diff --git a/src/ModuleBase/ModuleBase_DoubleSpinBox.cpp b/src/ModuleBase/ModuleBase_DoubleSpinBox.cpp index 745592709..488e8f11c 100644 --- a/src/ModuleBase/ModuleBase_DoubleSpinBox.cpp +++ b/src/ModuleBase/ModuleBase_DoubleSpinBox.cpp @@ -79,7 +79,7 @@ ModuleBase_DoubleSpinBox::ModuleBase_DoubleSpinBox(QWidget* theParent, int thePr connect(lineEdit(), SIGNAL(textChanged( const QString& )), this, SLOT(onTextChanged( const QString& ))); - connect(this, SIGNAL(valueChanged(const QString&)), this, SLOT(onValueChanged(const QString&))); + //connect(this, SIGNAL(valueChanged(const QString&)), this, SLOT(onValueChanged(const QString&))); } /*! diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index dcdd6ecc6..81d1cf6c8 100755 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -78,6 +78,8 @@ //#define DEBUG_DO_NOT_BY_ENTER +//#define DEBUG_CURSOR + /// Returns list of unique objects by sum of objects from List1 and List2 /*QList getSumList(const QList& theList1, const QList& theList2) @@ -197,8 +199,12 @@ void PartSet_SketcherMgr::onEnterViewPort() return; #endif - if (canChangeCursor(getCurrentOperation())) + if (canChangeCursor(getCurrentOperation())) { +#ifdef DEBUG_CURSOR + qDebug("onEnterViewPort() : Qt::CrossCursor"); +#endif QApplication::setOverrideCursor(QCursor(Qt::CrossCursor)); + } if (!isNestedCreateOperation(getCurrentOperation())) return; @@ -233,8 +239,12 @@ void PartSet_SketcherMgr::onLeaveViewPort() return; #endif - if (canChangeCursor(getCurrentOperation())) + if (canChangeCursor(getCurrentOperation())) { QApplication::restoreOverrideCursor(); +#ifdef DEBUG_CURSOR + qDebug("onLeaveViewPort() : None"); +#endif + } if (!isNestedCreateOperation(getCurrentOperation())) return; @@ -914,16 +924,24 @@ void PartSet_SketcherMgr::stopSketch(ModuleBase_Operation* theOperation) void PartSet_SketcherMgr::startNestedSketch(ModuleBase_Operation* theOperation) { - if (canChangeCursor(theOperation) && myIsMouseOverWindow) + if (canChangeCursor(theOperation) && myIsMouseOverWindow) { QApplication::setOverrideCursor(QCursor(Qt::CrossCursor)); +#ifdef DEBUG_CURSOR + qDebug("startNestedSketch() : Qt::CrossCursor"); +#endif + } } void PartSet_SketcherMgr::stopNestedSketch(ModuleBase_Operation* theOperation) { myIsMouseOverViewProcessed = true; operationMgr()->onValidateOperation(); - if (canChangeCursor(theOperation)) + if (canChangeCursor(theOperation)) { QApplication::restoreOverrideCursor(); +#ifdef DEBUG_CURSOR + qDebug("stopNestedSketch() : None"); +#endif + } } void PartSet_SketcherMgr::commitNestedSketch(ModuleBase_Operation* theOperation)