mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 16:50:53 +01:00
Element editor : graphic part
Diagram editor : shape item Gain a new way to be resized: mirror resizing. Click on the item for switch the resize mode git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4583 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -79,6 +79,9 @@ class PartRectangle : public CustomElementGraphicPart
|
||||
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event);
|
||||
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
|
||||
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
|
||||
|
||||
private:
|
||||
void switchResizeMode();
|
||||
|
||||
private:
|
||||
QRectF m_rect;
|
||||
@@ -86,5 +89,6 @@ class PartRectangle : public CustomElementGraphicPart
|
||||
QetGraphicsHandlerUtility m_handler;
|
||||
int m_handler_index;
|
||||
QPropertyUndoCommand *m_undo_command;
|
||||
int m_resize_mode = 1;
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user