From 768a5df0313abde9fd8bc28893437e2813ca8bab Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 22 Apr 2015 17:30:48 +0300 Subject: [PATCH] Refactoring. More correct name for method. --HG-- branch : develop --- src/app/tools/drawTools/vabstractspline.cpp | 2 +- src/app/tools/drawTools/vabstractspline.h | 2 +- src/app/tools/drawTools/vtoolcutspline.cpp | 2 +- src/app/tools/drawTools/vtoolcutsplinepath.cpp | 2 +- src/app/tools/drawTools/vtoolspline.cpp | 4 ++-- src/app/tools/drawTools/vtoolsplinepath.cpp | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/app/tools/drawTools/vabstractspline.cpp b/src/app/tools/drawTools/vabstractspline.cpp index 8d17770d8..affe230c5 100644 --- a/src/app/tools/drawTools/vabstractspline.cpp +++ b/src/app/tools/drawTools/vabstractspline.cpp @@ -219,7 +219,7 @@ void VAbstractSpline::ReadToolAttributes(const QDomElement &domElement) } //--------------------------------------------------------------------------------------------------------------------- -void VAbstractSpline::ShowFoot(bool show) +void VAbstractSpline::ShowHandles(bool show) { for (int i = 0; i < controlPoints.size(); ++i) { diff --git a/src/app/tools/drawTools/vabstractspline.h b/src/app/tools/drawTools/vabstractspline.h index 65fc8b4ea..2df8ab3cc 100644 --- a/src/app/tools/drawTools/vabstractspline.h +++ b/src/app/tools/drawTools/vabstractspline.h @@ -45,7 +45,7 @@ public: virtual int type() const {return Type;} enum { Type = UserType + static_cast(Tool::AbstractSpline)}; virtual QString getTagName() const; - void ShowFoot(bool show); + void ShowHandles(bool show); void setEnabled(bool enabled); diff --git a/src/app/tools/drawTools/vtoolcutspline.cpp b/src/app/tools/drawTools/vtoolcutspline.cpp index 696a80ce6..d99c97c16 100644 --- a/src/app/tools/drawTools/vtoolcutspline.cpp +++ b/src/app/tools/drawTools/vtoolcutspline.cpp @@ -226,7 +226,7 @@ void VToolCutSpline::ShowVisualization(bool show) } if (VAbstractSpline *parentCurve = qobject_cast(doc->getTool(curveCutId))) { - parentCurve->ShowFoot(show); + parentCurve->ShowHandles(show); } } diff --git a/src/app/tools/drawTools/vtoolcutsplinepath.cpp b/src/app/tools/drawTools/vtoolcutsplinepath.cpp index b67579844..ffb77fa41 100644 --- a/src/app/tools/drawTools/vtoolcutsplinepath.cpp +++ b/src/app/tools/drawTools/vtoolcutsplinepath.cpp @@ -271,7 +271,7 @@ void VToolCutSplinePath::ShowVisualization(bool show) } if (VAbstractSpline *parentCurve = qobject_cast(doc->getTool(curveCutId))) { - parentCurve->ShowFoot(show); + parentCurve->ShowHandles(show); } } diff --git a/src/app/tools/drawTools/vtoolspline.cpp b/src/app/tools/drawTools/vtoolspline.cpp index 76de7e7ca..7e92f75d8 100644 --- a/src/app/tools/drawTools/vtoolspline.cpp +++ b/src/app/tools/drawTools/vtoolspline.cpp @@ -83,7 +83,7 @@ VToolSpline::VToolSpline(VPattern *doc, VContainer *data, quint32 id, const QStr connect(controlPoint2, &VControlPointSpline::ShowContextMenu, this, &VToolSpline::contextMenuEvent); controlPoints.append(controlPoint2); - ShowFoot(false); + ShowHandles(false); if (typeCreation == Source::FromGui) { @@ -261,7 +261,7 @@ void VToolSpline::ShowVisualization(bool show) delete vis; vis = nullptr; } - ShowFoot(show); + ShowHandles(show); } //--------------------------------------------------------------------------------------------------------------------- diff --git a/src/app/tools/drawTools/vtoolsplinepath.cpp b/src/app/tools/drawTools/vtoolsplinepath.cpp index 8427b11b1..57fdd0146 100644 --- a/src/app/tools/drawTools/vtoolsplinepath.cpp +++ b/src/app/tools/drawTools/vtoolsplinepath.cpp @@ -85,7 +85,7 @@ VToolSplinePath::VToolSplinePath(VPattern *doc, VContainer *data, quint32 id, co controlPoints.append(controlPoint); } - ShowFoot(false); + ShowHandlers(false); if (typeCreation == Source::FromGui) { @@ -333,7 +333,7 @@ void VToolSplinePath::ShowVisualization(bool show) delete vis; vis = nullptr; } - ShowFoot(show); + ShowHandlers(show); } //---------------------------------------------------------------------------------------------------------------------