mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 08:40:53 +01:00
Implemented QET coding style (replaced 4 space with tab)
This commit is contained in:
committed by
Laurent Trinques
parent
c640d96bca
commit
ccfb46b354
@@ -296,14 +296,14 @@ void PartPolygon::resetAllHandlerColor()
|
||||
|
||||
void PartPolygon::setRotation(qreal angle) {
|
||||
|
||||
QTransform rotation = QTransform().translate(m_polygon.first().x(),m_polygon.first().y()).rotate(angle-m_rot).translate(-m_polygon.first().x(),-m_polygon.first().y());
|
||||
m_rot=angle;
|
||||
QTransform rotation = QTransform().translate(m_polygon.first().x(),m_polygon.first().y()).rotate(angle-m_rot).translate(-m_polygon.first().x(),-m_polygon.first().y());
|
||||
m_rot=angle;
|
||||
|
||||
setPolygon(rotation.map(m_polygon));
|
||||
setPolygon(rotation.map(m_polygon));
|
||||
}
|
||||
|
||||
qreal PartPolygon::rotation() const {
|
||||
return m_rot;
|
||||
return m_rot;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user