@@ -27,6 +27,7 @@
27#include <libintl.h>
27#include <libintl.h>
29#include <paths.h>
29#include <paths.h>
30+#include "../qmldebuggerutils.h"
30#ifdef UNITY8_ENABLE_TOUCH_EMULATION
31#ifdef UNITY8_ENABLE_TOUCH_EMULATION
31 #include "../MouseTouchAdaptor.h"
32 #include "../MouseTouchAdaptor.h"
@@ -34,6 +35,10 @@
35int main(int argc, const char *argv[])
36int main(int argc, const char *argv[])
38+ if (enableQmlDebugger(argc, argv)) {
39+ QQmlDebuggingEnabler qQmlEnableDebuggingHelper(true);
37 QGuiApplication *application = new QGuiApplication(argc, (char**)argv);
42 QGuiApplication *application = new QGuiApplication(argc, (char**)argv);
39 QCommandLineParser parser;
44 QCommandLineParser parser;
@@ -73,10 +78,6 @@ int main(int argc, const char *argv[])
76− if (getenv("ENABLE_QML_DEBUGGER")) {
77− QQmlDebuggingEnabler qQmlEnableDebuggingHelper(true);
80 bindtextdomain("unity8", translationDirectory().toUtf8().data());
81 bindtextdomain("unity8", translationDirectory().toUtf8().data());
81 textdomain("unity8");
82 textdomain("unity8");