mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 08:40:53 +01:00
Il est desormais possible de pivoter les textes des elements dans l'editeur de schema.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@815 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -1072,6 +1072,8 @@ bool Diagram::canRotateSelection() const {
|
||||
foreach(QGraphicsItem * qgi, selectedItems()) {
|
||||
if (/*DiagramTextItem *dti = */qgraphicsitem_cast<DiagramTextItem *>(qgi)) {
|
||||
return(true);
|
||||
} else if (qgraphicsitem_cast<ElementTextItem *>(qgi)) {
|
||||
return(true);
|
||||
} else if (Element *e = qgraphicsitem_cast<Element *>(qgi)) {
|
||||
// l'element est-il pivotable ?
|
||||
if (e -> orientation().current() != e -> orientation().next()) {
|
||||
|
||||
Reference in New Issue
Block a user