Commit 26f79571 authored by Kai Koehne's avatar Kai Koehne

QmlObserver: Use new 4.7.1 API to enable qml debugging

Qml debugging is now disabled by default, and has to be enabled
explicitly (b2016bbfc9). This has to be done before the
QDView/QDEngine is instantiated ...

Reviewed-by: Alessandro Portale
parent 2ac91abd
......@@ -50,6 +50,7 @@
#include <QDebug>
#include <QMessageBox>
#include "qdeclarativetester.h"
#include "private/qdeclarativedebughelper_p.h"
QT_USE_NAMESPACE
......@@ -361,6 +362,9 @@ int main(int argc, char ** argv)
if (stayOnTop)
wflags |= Qt::WindowStaysOnTopHint;
// enable remote debugging
QDeclarativeDebugHelper::enableDebugging();
QDeclarativeViewer *viewer = new QDeclarativeViewer(0, wflags);
viewer->setAttribute(Qt::WA_DeleteOnClose, true);
if (!scriptopts.isEmpty()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment