App: harmonize API of App::Application
* make getHomePath() static and return a std::string * make getExecutableName() static and return a std::string
This commit is contained in:
@@ -1029,7 +1029,7 @@ PyObject* Application::sAddResPath(PyObject * /*self*/, PyObject *args)
|
||||
PyMem_Free(filePath);
|
||||
if (QDir::isRelativePath(path)) {
|
||||
// Home path ends with '/'
|
||||
QString home = QString::fromUtf8(App::GetApplication().getHomePath());
|
||||
QString home = QString::fromStdString(App::Application::getHomePath());
|
||||
path = home + path;
|
||||
}
|
||||
|
||||
@@ -1048,7 +1048,7 @@ PyObject* Application::sAddLangPath(PyObject * /*self*/, PyObject *args)
|
||||
PyMem_Free(filePath);
|
||||
if (QDir::isRelativePath(path)) {
|
||||
// Home path ends with '/'
|
||||
QString home = QString::fromUtf8(App::GetApplication().getHomePath());
|
||||
QString home = QString::fromStdString(App::Application::getHomePath());
|
||||
path = home + path;
|
||||
}
|
||||
|
||||
@@ -1066,7 +1066,7 @@ PyObject* Application::sAddIconPath(PyObject * /*self*/, PyObject *args)
|
||||
PyMem_Free(filePath);
|
||||
if (QDir::isRelativePath(path)) {
|
||||
// Home path ends with '/'
|
||||
QString home = QString::fromUtf8(App::GetApplication().getHomePath());
|
||||
QString home = QString::fromStdString(App::Application::getHomePath());
|
||||
path = home + path;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user