diff options
Diffstat (limited to 'src/core/Bootstrap.cpp')
-rw-r--r-- | src/core/Bootstrap.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/core/Bootstrap.cpp b/src/core/Bootstrap.cpp index cfef7db7b..10dd9b2d8 100644 --- a/src/core/Bootstrap.cpp +++ b/src/core/Bootstrap.cpp @@ -62,11 +62,10 @@ namespace Bootstrap } /** - * Perform early application bootstrapping such as setting up search paths, - * configuration OS security properties, and loading translators. - * A QApplication object has to be instantiated before calling this function. + * Perform early application bootstrapping that does not rely on a QApplication + * being present. */ - void bootstrapApplication() + void bootstrap() { #ifdef QT_NO_DEBUG disableCoreDumps(); @@ -74,6 +73,16 @@ namespace Bootstrap setupSearchPaths(); applyEarlyQNetworkAccessManagerWorkaround(); Translator::installTranslators(); + } + + /** + * Perform early application bootstrapping such as setting up search paths, + * configuration OS security properties, and loading translators. + * A QApplication object has to be instantiated before calling this function. + */ + void bootstrapApplication() + { + bootstrap(); MessageBox::initializeButtonDefs(); #ifdef Q_OS_MACOS |