mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
Correction pour la gestion du dossier perso sous Windows
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@7 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
parent
f0c4be6a43
commit
45a71bc573
@ -744,12 +744,16 @@ QString QETApp::commonElementsDir() {
|
||||
@return Le chemin du dossier dans lequel QET doit chercher les definitions XML des elements propres a l'utilisateur
|
||||
*/
|
||||
QString QETApp::customElementsDir() {
|
||||
#ifdef Q_OS_WIN32
|
||||
return(QETApp::configDir() + "elements\\");
|
||||
#else
|
||||
return(QETApp::configDir() + "elements/");
|
||||
#endif
|
||||
}
|
||||
|
||||
QString QETApp::configDir() {
|
||||
#ifdef Q_OS_WIN32
|
||||
return(QDir::homePath() + "\Application Data\qet\\");
|
||||
return(QDir::homePath() + "\\Application Data\\qet\\");
|
||||
#else
|
||||
return(QDir::homePath() + "/.qet/");
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user