Refactoring. More correct name for method.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-04-22 17:30:48 +03:00
parent 4e92968f36
commit 768a5df031
6 changed files with 8 additions and 8 deletions

View File

@ -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) for (int i = 0; i < controlPoints.size(); ++i)
{ {

View File

@ -45,7 +45,7 @@ public:
virtual int type() const {return Type;} virtual int type() const {return Type;}
enum { Type = UserType + static_cast<int>(Tool::AbstractSpline)}; enum { Type = UserType + static_cast<int>(Tool::AbstractSpline)};
virtual QString getTagName() const; virtual QString getTagName() const;
void ShowFoot(bool show); void ShowHandles(bool show);
void setEnabled(bool enabled); void setEnabled(bool enabled);

View File

@ -226,7 +226,7 @@ void VToolCutSpline::ShowVisualization(bool show)
} }
if (VAbstractSpline *parentCurve = qobject_cast<VAbstractSpline *>(doc->getTool(curveCutId))) if (VAbstractSpline *parentCurve = qobject_cast<VAbstractSpline *>(doc->getTool(curveCutId)))
{ {
parentCurve->ShowFoot(show); parentCurve->ShowHandles(show);
} }
} }

View File

@ -271,7 +271,7 @@ void VToolCutSplinePath::ShowVisualization(bool show)
} }
if (VAbstractSpline *parentCurve = qobject_cast<VAbstractSpline *>(doc->getTool(curveCutId))) if (VAbstractSpline *parentCurve = qobject_cast<VAbstractSpline *>(doc->getTool(curveCutId)))
{ {
parentCurve->ShowFoot(show); parentCurve->ShowHandles(show);
} }
} }

View File

@ -83,7 +83,7 @@ VToolSpline::VToolSpline(VPattern *doc, VContainer *data, quint32 id, const QStr
connect(controlPoint2, &VControlPointSpline::ShowContextMenu, this, &VToolSpline::contextMenuEvent); connect(controlPoint2, &VControlPointSpline::ShowContextMenu, this, &VToolSpline::contextMenuEvent);
controlPoints.append(controlPoint2); controlPoints.append(controlPoint2);
ShowFoot(false); ShowHandles(false);
if (typeCreation == Source::FromGui) if (typeCreation == Source::FromGui)
{ {
@ -261,7 +261,7 @@ void VToolSpline::ShowVisualization(bool show)
delete vis; delete vis;
vis = nullptr; vis = nullptr;
} }
ShowFoot(show); ShowHandles(show);
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------

View File

@ -85,7 +85,7 @@ VToolSplinePath::VToolSplinePath(VPattern *doc, VContainer *data, quint32 id, co
controlPoints.append(controlPoint); controlPoints.append(controlPoint);
} }
ShowFoot(false); ShowHandlers(false);
if (typeCreation == Source::FromGui) if (typeCreation == Source::FromGui)
{ {
@ -333,7 +333,7 @@ void VToolSplinePath::ShowVisualization(bool show)
delete vis; delete vis;
vis = nullptr; vis = nullptr;
} }
ShowFoot(show); ShowHandlers(show);
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------