mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 16:50:53 +01:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user