Change the way how an element or directory is copied, this isn't the role of the new panel to manage the copy.

We must to use elementcollectionhandler instead


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4343 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2016-02-13 12:51:56 +00:00
parent 3142b87377
commit 6f6561be01
15 changed files with 538 additions and 131 deletions

View File

@@ -246,7 +246,7 @@ QList<ElementCollectionItem *> ElementsCollectionModel::items() const
void ElementsCollectionModel::addCommonCollection()
{
FileElementCollectionItem *feci = new FileElementCollectionItem(m_root_item);
if (feci->setRootPath(QETApp::commonElementsDir()))
if (feci->setRootPath(QETApp::commonElementsDirN()))
m_root_item->appendChild(feci);
else
delete feci;
@@ -259,7 +259,7 @@ void ElementsCollectionModel::addCommonCollection()
void ElementsCollectionModel::addCustomCollection()
{
FileElementCollectionItem *feci = new FileElementCollectionItem(m_root_item);
if (feci->setRootPath(QETApp::customElementsDir()))
if (feci->setRootPath(QETApp::customElementsDirN()))
m_root_item->appendChild(feci);
else
delete feci;