If we are compiled with qmljs debugging then we
initialize it immediately before constructing QApplication
Seems to fail otherwise.
#endif
Q_DECL_EXPORT int main(int argc, char *argv[]) {
+#ifdef QMLJSDEBUGGER
+ QDeclarativeDebugHelper::enableDebugging();
+#endif /* QMLJSDEBUGGER */
+
#if defined(QT4)
QApplication::setAttribute(Qt::AA_X11InitThreads, true);
QApplication *app = new QApplication(argc, argv);
QQuickView *view = MDeclarativeCache::qQuickView();
#endif
-#ifdef QMLJSDEBUGGER
- QDeclarativeDebugHelper::enableDebugging();
-#endif /* QMLJSDEBUGGER */
-
#if defined(QT4)
view->setAttribute(Qt::WA_NoSystemBackground);
view->setViewport(new QGLWidget);