QetShapeItem: Add Scale option with UNDO/REDO

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3078 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
abhishekm71
2014-05-25 18:33:06 +00:00
parent 92b8d4babf
commit 215e268467
4 changed files with 89 additions and 3 deletions

View File

@@ -43,6 +43,7 @@ class QetShapeItem : public QetGraphicsItem
void setWritingXml(bool writing) { _writingXml = writing; }
virtual void editProperty();
QRectF boundingRect() const;
void scale(double factor);
private:
ShapeType _shapeType;
@@ -51,10 +52,8 @@ class QetShapeItem : public QetGraphicsItem
bool _lineAngle; // false if line from topleft corner to bottomright corner
// and true if line from topright corner to bottomleft corner
bool _isFullyBuilt;
QPointF _lineP1;
QPointF _lineP2;
QPointF _origMousePress;
bool _writingXml;
bool _writingXml;
protected:
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);