Modification du comportement de l'application : si les variables de compilation QET_LANG_PATH et QET_COMMON_COLLECTION_PATH ne sont pas definies, celle-ci recherche desormais le repertoire des traductions et le repertoire de la collection commune relativement au dossier contenant l'executable.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@632 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2009-05-09 18:04:58 +00:00
parent bb4a350603
commit 8633a15bbe
2 changed files with 10 additions and 8 deletions

View File

@@ -267,7 +267,7 @@ QString QETApp::commonElementsDir() {
#ifdef QET_COMMON_COLLECTION_PATH
return(QUOTE(QET_COMMON_COLLECTION_PATH));
#else
return(QDir::current().path() + "/elements/");
return(QCoreApplication::applicationDirPath() + "/elements/");
#endif
}
@@ -412,7 +412,7 @@ QString QETApp::languagesPath() {
return(lang_dir);
} else {
#ifndef QET_LANG_PATH
return(QDir::current().path() + "/lang/");
return(QCoreApplication::applicationDirPath() + "/lang/");
#else
return(QUOTE(QET_LANG_PATH));
#endif