mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-03-09 08:49:59 +01:00
* Added the m_rotate_action to qetelementeditor.ui * Adding QAction to qetelementeditor.cpp and connecting it to new slot RotateElementsCommand defined in editorcommands.cpp
* Some types of elements need to specialize the setRotation method in order to behave correctly : - PartTerminal needs to call setOrientation - PartLine, PartRectangle and PartPolygon need a different rotation center.
This commit is contained in:
committed by
Laurent Trinques
parent
9135099dbf
commit
c640d96bca
@@ -72,7 +72,11 @@ class PartTerminal : public CustomElementGraphicPart
|
||||
void handleUserTransformation(const QRectF &, const QRectF &) override;
|
||||
|
||||
Qet::Orientation orientation() const {return d -> m_orientation;}
|
||||
void setOrientation(Qet::Orientation ori);
|
||||
void setOrientation(Qet::Orientation ori);
|
||||
|
||||
qreal rotation() const;
|
||||
void setRotation(qreal angle);
|
||||
|
||||
|
||||
QString name() const override { return d -> m_name; }
|
||||
void setName(QString& name);
|
||||
|
||||
Reference in New Issue
Block a user