mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 17:50:52 +01:00
Enable the drag and drop inside the new element panel
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4284 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -163,3 +163,17 @@ bool ElementCollectionItem::isElement() const {
|
||||
bool ElementCollectionItem::isValid() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ElementCollectionItem::items
|
||||
* @return all child and subchild subsubchild... contained by this item
|
||||
* This item isn't stored in the list
|
||||
*/
|
||||
QList<ElementCollectionItem *> ElementCollectionItem::items() const
|
||||
{
|
||||
QList<ElementCollectionItem *> list;
|
||||
list.append(m_child_items);
|
||||
foreach(ElementCollectionItem *eci, m_child_items)
|
||||
list.append(eci->items());
|
||||
return list;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user