From a980381cb4f720c199403891ff207dad56721bd9 Mon Sep 17 00:00:00 2001 From: dismine Date: Thu, 26 Jun 2014 13:48:31 +0300 Subject: [PATCH] Refactoring. --HG-- branch : develop --- src/app/geometry/varc.cpp | 25 ------------------------- src/app/geometry/varc.h | 1 - 2 files changed, 26 deletions(-) diff --git a/src/app/geometry/varc.cpp b/src/app/geometry/varc.cpp index e871d849f..54fbf9906 100644 --- a/src/app/geometry/varc.cpp +++ b/src/app/geometry/varc.cpp @@ -128,31 +128,6 @@ QPointF VArc::GetP2 () const return centerP2.p2(); } -//--------------------------------------------------------------------------------------------------------------------- -/** - * @brief GetPath return QPainterPath for this arc. - * @return path. - */ -QPainterPath VArc::GetPath() const -{ - QPainterPath path; - - QVector points = GetPoints(); - if (points.count() >= 2) - { - for (qint32 i = 0; i < points.count()-1; ++i) - { - path.moveTo(points.at(i)); - path.lineTo(points.at(i+1)); - } - } - else - { - qDebug()<<"points.count() < 2"< GetPoints () const; QPointF CutArc (const qreal &length, VArc &arc1, VArc &arc2) const;