mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-05-25 15:29:59 +02:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user