mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-30 15:50:52 +01:00
Implementation d'un menu pour editer un conducteur deja pose
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@151 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
10
diagram.cpp
10
diagram.cpp
@@ -486,3 +486,13 @@ void Diagram::setDrawTerminals(bool dt) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
QSet<Conducer *> Diagram::selectedConducers() const {
|
||||
QSet<Conducer *> conducers_set;
|
||||
foreach(QGraphicsItem *qgi, selectedItems()) {
|
||||
if (Conducer *c = qgraphicsitem_cast<Conducer *>(qgi)) {
|
||||
conducers_set << c;
|
||||
}
|
||||
}
|
||||
return(conducers_set);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user