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

@@ -495,6 +495,30 @@ QString QETApp::customElementsDir() {
return(configDir() + "elements/");
}
/**
* @brief QETApp::commonElementsDirN
* like QString QETApp::commonElementsDir but without "/" at the end
* @return
*/
QString QETApp::commonElementsDirN()
{
QString path = commonElementsDir();
if (path.endsWith("/")) path.remove(path.length()-1, 1);
return path;
}
/**
* @brief QETApp::customElementsDirN
* like QString QETApp::customElementsDir but without "/" at the end
* @return
*/
QString QETApp::customElementsDirN()
{
QString path = customElementsDir();
if (path.endsWith("/")) path.remove(path.length()-1, 1);
return path;
}
/**
@return the path of the directory containing the common title block
templates collection.