mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Fix wrong behavior when move a text item group, with rotation different than 0
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5223 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -25,6 +25,7 @@ class QGraphicsItem;
|
||||
class DiagramTextItem;
|
||||
class Diagram;
|
||||
class QGraphicsItemGroup;
|
||||
class QGraphicsSceneMouseEvent;
|
||||
|
||||
/**
|
||||
This class manages the interactive movement of element text items on a
|
||||
@@ -40,7 +41,7 @@ class ElementTextsMover
|
||||
public:
|
||||
bool isReady() const;
|
||||
int beginMovement(Diagram *diagram, QGraphicsItem *driver_item = nullptr);
|
||||
void continueMovement(const QPointF &);
|
||||
void continueMovement(QGraphicsSceneMouseEvent *event);
|
||||
void endMovement();
|
||||
|
||||
private:
|
||||
@@ -53,7 +54,6 @@ class ElementTextsMover
|
||||
QHash <DiagramTextItem *, QPointF> m_texts_hash;
|
||||
QHash <QGraphicsItemGroup *, QPointF> m_grps_hash;
|
||||
QHash <QGraphicsItem *, QPointF> m_items_hash;
|
||||
QPointF m_last_pos;
|
||||
int m_text_count = 0,
|
||||
m_group_count = 0;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user