diff --git a/src/libs/vtools/tools/drawTools/operation/vabstractoperation.cpp b/src/libs/vtools/tools/drawTools/operation/vabstractoperation.cpp index 8497ec0f0..fa3b6c50f 100644 --- a/src/libs/vtools/tools/drawTools/operation/vabstractoperation.cpp +++ b/src/libs/vtools/tools/drawTools/operation/vabstractoperation.cpp @@ -223,6 +223,22 @@ void VAbstractOperation::AllowSelecting(bool enabled) } } +//--------------------------------------------------------------------------------------------------------------------- +void VAbstractOperation::EnableToolMove(bool move) +{ + QMapIterator i(operatedObjects); + while (i.hasNext()) + { + i.next(); + if (i.value()->GetType() == GOType::Point) + { + VSimplePoint *item = qobject_cast(i.value()); + SCASSERT(item != nullptr) + item->EnableToolMove(move); + } + } +} + //--------------------------------------------------------------------------------------------------------------------- void VAbstractOperation::AllowPointHover(bool enabled) { diff --git a/src/libs/vtools/tools/drawTools/operation/vabstractoperation.h b/src/libs/vtools/tools/drawTools/operation/vabstractoperation.h index 7e57adde6..689bf28c8 100644 --- a/src/libs/vtools/tools/drawTools/operation/vabstractoperation.h +++ b/src/libs/vtools/tools/drawTools/operation/vabstractoperation.h @@ -83,6 +83,7 @@ public slots: virtual void AllowHover(bool enabled) Q_DECL_OVERRIDE; virtual void AllowSelecting(bool enabled) Q_DECL_OVERRIDE; + virtual void EnableToolMove(bool move) Q_DECL_OVERRIDE; void AllowPointHover(bool enabled); void AllowPointSelecting(bool enabled);