mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 23:20:52 +01:00
Desactivation de la contre-rotation appliquee aux champs de texte sans FollowParentRotation lors du pivotement de leur element parent
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@949 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -164,8 +164,9 @@ bool Element::setOrientation(QET::Orientation o) {
|
|||||||
ori.setCurrent(o);
|
ori.setCurrent(o);
|
||||||
update();
|
update();
|
||||||
foreach(QGraphicsItem *qgi, childItems()) {
|
foreach(QGraphicsItem *qgi, childItems()) {
|
||||||
if (Terminal *p = qgraphicsitem_cast<Terminal *>(qgi)) p -> updateConductor();
|
if (Terminal *p = qgraphicsitem_cast<Terminal *>(qgi)) {
|
||||||
else if (ElementTextItem *eti = qgraphicsitem_cast<ElementTextItem *>(qgi)) {
|
p -> updateConductor();
|
||||||
|
} /* else if (ElementTextItem *eti = qgraphicsitem_cast<ElementTextItem *>(qgi)) {
|
||||||
// applique une rotation contraire si besoin
|
// applique une rotation contraire si besoin
|
||||||
if (!eti -> followParentRotations()) {
|
if (!eti -> followParentRotations()) {
|
||||||
QMatrix new_matrix = eti -> matrix();
|
QMatrix new_matrix = eti -> matrix();
|
||||||
@@ -177,6 +178,7 @@ bool Element::setOrientation(QET::Orientation o) {
|
|||||||
eti -> setMatrix(new_matrix);
|
eti -> setMatrix(new_matrix);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
return(true);
|
return(true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user