add widget to configure rotation conductor text by default (not finish)

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2198 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2013-06-02 21:37:04 +00:00
parent 8fe4b7807f
commit f7478c2051
6 changed files with 45 additions and 5 deletions

View File

@@ -1124,7 +1124,8 @@ void Conductor::calculateTextItemPosition() {
} else {
// positionnement automatique basique
text_item -> setPos(middleSegment() -> middle());
middleSegment() -> isVertical()? text_item -> setRotationAngle(270): text_item -> setRotationAngle(0);
middleSegment() -> isVertical()? text_item -> setRotationAngle(properties_.verti_rotate_text):
text_item -> setRotationAngle(properties_.horiz_rotate_text);
}
}
@@ -1222,6 +1223,7 @@ ConductorProperties Conductor::properties() const {
void Conductor::readProperties() {
// la couleur n'est vraiment applicable que lors du rendu du conducteur
setText(properties_.text);
calculateTextItemPosition();
text_item -> setVisible(properties_.type == ConductorProperties::Multi);
}