Qml Debugger: Set detailed options rather than "sanity"

The v4 debug service doesn't understand "sanity" after all, but wants
to know the features we support. So state that we don't need redundant
references and that we understand names when sent as strings.

Change-Id: Ie973dd8002935a113a367d098337983d61663265
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Ulf Hermann
2017-03-14 18:00:15 +01:00
parent 8457949dbc
commit 7236f2124a

View File

@@ -2536,7 +2536,8 @@ void QmlEnginePrivate::stateChanged(State state)
/// Start session. /// Start session.
flushSendBuffer(); flushSendBuffer();
QJsonObject parameters; QJsonObject parameters;
parameters.insert("sanity", 1); parameters.insert("redundantRefs", false);
parameters.insert("namesAsObjects", false);
runDirectCommand(CONNECT, QJsonDocument(parameters).toJson()); runDirectCommand(CONNECT, QJsonDocument(parameters).toJson());
runCommand({VERSION}, CB(handleVersion)); runCommand({VERSION}, CB(handleVersion));
} }