mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-03-04 12:49:59 +01:00
Implemented QET coding style (replaced 4 space with tab)
This commit is contained in:
committed by
Laurent Trinques
parent
c640d96bca
commit
ccfb46b354
@@ -605,14 +605,14 @@ void PartLine::setSecondEndLength(const qreal &l)
|
||||
|
||||
void PartLine::setRotation(qreal angle) {
|
||||
|
||||
QTransform rotation = QTransform().translate(m_line.p1().x(),m_line.p1().y()).rotate(angle-m_rot).translate(-m_line.p1().x(),-m_line.p1().y());
|
||||
m_rot=angle;
|
||||
QTransform rotation = QTransform().translate(m_line.p1().x(),m_line.p1().y()).rotate(angle-m_rot).translate(-m_line.p1().x(),-m_line.p1().y());
|
||||
m_rot=angle;
|
||||
|
||||
setLine(rotation.map(m_line));
|
||||
setLine(rotation.map(m_line));
|
||||
}
|
||||
|
||||
qreal PartLine::rotation() const {
|
||||
return m_rot;
|
||||
return m_rot;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user