Element editor : add new handler for arc to resize angle with mouse.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4722 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2016-09-25 08:14:29 +00:00
parent 55c094d663
commit bd4a472b7d
6 changed files with 162 additions and 55 deletions

View File

@@ -54,6 +54,7 @@ class QetGraphicsHandlerUtility
public:
static QVector <QPointF> pointsForRect (const QRectF &rect);
static QVector <QPointF> pointsForLine (const QLineF &line);
static QVector <QPointF> pointsForArc (const QRectF &rect, qreal start_angle, qreal span_angle);
static QRectF rectForPosAtIndex (const QRectF &old_rect, const QPointF &pos, int index);
static QRectF mirrorRectForPosAtIndex (const QRectF &old_rect, const QPointF &pos, int index);
static QLineF lineForPosAtIndex (const QLineF &old_line, const QPointF &pos, int index);