mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
clean some code
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5279 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -1278,8 +1278,8 @@ void Conductor::calculateTextItemPosition() {
|
||||
QPointF text_pos = posForText(rotation);
|
||||
|
||||
if (!m_text_item -> wasRotateByUser()) {
|
||||
rotation == Qt::Vertical ? m_text_item -> setRotationAngle(m_properties.verti_rotate_text):
|
||||
m_text_item -> setRotationAngle(m_properties.horiz_rotate_text);
|
||||
rotation == Qt::Vertical ? m_text_item -> setRotation(m_properties.verti_rotate_text):
|
||||
m_text_item -> setRotation(m_properties.horiz_rotate_text);
|
||||
}
|
||||
|
||||
//Adjust the position of text if his rotation
|
||||
|
||||
Reference in New Issue
Block a user