Enable the drag & drop of an element from the element panel (an embedded element of a project) to the folio of another project.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4388 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2016-03-19 14:18:00 +00:00
parent ab39529d8f
commit 4fe4509885
5 changed files with 91 additions and 66 deletions

View File

@@ -789,7 +789,9 @@ QString QETProject::integrateElement(const QString &elmt_path, MoveElementsHandl
{
// integre l'element normalement
result = copyElementWithHandler(integ_elmt, target_cat, handler, error_message);
QString xml_path = m_elements_collection->addElement(elmt_path);
ElementsLocation location(elmt_path);
QString xml_path = m_elements_collection->addElement(location);
if (!xml_path.isNull()) emit elementIntegratedToCollection(this, xml_path);
}