Element editor: add polygon is managed by an esevent

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3466 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-11-08 11:14:56 +00:00
parent f3e86766c1
commit 217cb4939c
9 changed files with 249 additions and 56 deletions

View File

@@ -58,6 +58,10 @@ class PartPolygon : public CustomElementGraphicPart, public QGraphicsPolygonItem
virtual void handleUserTransformation(const QRectF &, const QRectF &);
virtual QET::ScalingMethod preferredScalingMethod() const;
void addPoint (const QPointF &point);
void setLastPoint (const QPointF &point);
void removeLastPoint ();
///PROPERTY
// Closed (join the first and last point by a line)
Q_PROPERTY(bool closed READ isClosed WRITE setClosed)