mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 00:30:53 +01:00
add class ElementProvider and build small ui for the properties of folio report element
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2672 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -936,6 +936,15 @@ QList<CustomElement *> Diagram::customElements() const {
|
||||
return(elements_list);
|
||||
}
|
||||
|
||||
QList <Element *> Diagram::elements() const {
|
||||
QList<Element *> element_list;
|
||||
foreach (QGraphicsItem *qgi, items()) {
|
||||
if (Element *elmt = qgraphicsitem_cast<Element *>(qgi))
|
||||
element_list <<elmt;
|
||||
}
|
||||
return (element_list);
|
||||
}
|
||||
|
||||
/**
|
||||
Initialise un deplacement d'elements, conducteurs et champs de texte sur le
|
||||
schema.
|
||||
|
||||
Reference in New Issue
Block a user