From fd950a692b9abe08e03ba049c9ee6bf225d31faa Mon Sep 17 00:00:00 2001 From: kaetemi Date: Mon, 18 Jan 2016 11:27:14 +0100 Subject: [PATCH] Faster Qt startup --HG-- branch : develop --- code/nel/tools/3d/tile_edit_qt/main.cpp | 3 +++ code/nel/tools/misc/crash_report/crash_report.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/code/nel/tools/3d/tile_edit_qt/main.cpp b/code/nel/tools/3d/tile_edit_qt/main.cpp index 4a6ff4cbf..fe0ae6d45 100644 --- a/code/nel/tools/3d/tile_edit_qt/main.cpp +++ b/code/nel/tools/3d/tile_edit_qt/main.cpp @@ -16,6 +16,8 @@ #endif +#include "../shared_widgets/common.h" + int main(int argc, char *argv[]) { @@ -25,6 +27,7 @@ int main(int argc, char *argv[]) // the specific initialization routines you do not need. NLMISC::CApplicationContext myApplicationContext; + NLQT::preApplication(); Q_INIT_RESOURCE(tile_edit_qt); QApplication app(argc, argv); diff --git a/code/nel/tools/misc/crash_report/crash_report.cpp b/code/nel/tools/misc/crash_report/crash_report.cpp index f9191fde7..08063d78e 100644 --- a/code/nel/tools/misc/crash_report/crash_report.cpp +++ b/code/nel/tools/misc/crash_report/crash_report.cpp @@ -25,6 +25,8 @@ #include #include +#include "../../3d/shared_widgets/common.h" + class CCmdLineParser { public: @@ -105,6 +107,7 @@ int main(int argc, char **argv) } #endif + NLQT::preApplication(); QApplication app(argc, argv); QApplication::setWindowIcon(QIcon(":/icons/nevraxpill.ico"));