polygon editor : use QPropertyUndoCommand instead of ChangePartCommand

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4069 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2015-07-24 11:11:50 +00:00
parent 5b8a6a9745
commit b32e1bf339
6 changed files with 58 additions and 97 deletions

View File

@@ -45,6 +45,10 @@ class PartPolygon : public CustomElementGraphicPart
private:
PartPolygon(const PartPolygon &);
signals:
void closedChange();
void polygonChanged();
// methods
public:
enum { Type = UserType + 1105 };
@@ -78,7 +82,7 @@ class PartPolygon : public CustomElementGraphicPart
void removeLastPoint ();
bool isClosed () const {return m_closed;}
void setClosed (bool c) {m_closed = c;}
void setClosed (bool close);
protected:
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event);