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:
blacksun
2015-12-09 20:27:31 +00:00
parent 827fba8ce4
commit 6bf52bb525
10 changed files with 324 additions and 154 deletions

View File

@@ -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;
}