mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-05-02 03:19:59 +02:00
Basic Shapes: Move coords corrected for XML, DXF export
(Bounding Rectangle had to be updated with each move) git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2912 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -42,6 +42,7 @@ class QetShapeItem : public QetGraphicsItem
|
||||
virtual QDomElement toXml(QDomDocument &document) const;
|
||||
void setWritingXml(bool writing) { _writingXml = writing; }
|
||||
virtual void editProperty();
|
||||
QRectF boundingRect() const;
|
||||
|
||||
private:
|
||||
ShapeType _shapeType;
|
||||
@@ -52,11 +53,13 @@ class QetShapeItem : public QetGraphicsItem
|
||||
bool _isFullyBuilt;
|
||||
QPointF _lineP1;
|
||||
QPointF _lineP2;
|
||||
QPointF _origMousePress;
|
||||
bool _writingXml;
|
||||
|
||||
protected:
|
||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
|
||||
QRectF boundingRect() const;
|
||||
virtual void mousePressEvent(QGraphicsSceneMouseEvent *e);
|
||||
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *e);
|
||||
QPainterPath shape() const;
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user