forked from qt-creator/qt-creator
Debugger: Prompt for reload if set/reset binding fails.
QtCreator takes into account the result of message from qtdeclarative for setting, resetting and updating the method body. Task-number: QTCREATORBUG-3264 Change-Id: I15d1a33990175e86bb3f2fee08f75dd5b7b1b628 Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
This commit is contained in:
committed by
Christiaan Janssen
parent
d3f3ab0115
commit
80180ba714
@@ -423,6 +423,14 @@ void QmlInspectorAgent::onResult(quint32 queryId, const QVariant &value,
|
||||
if (type == _("FETCH_OBJECT_R")) {
|
||||
log(LogReceive, _("FETCH_OBJECT_R %1").arg(
|
||||
qvariant_cast<ObjectReference>(value).idString()));
|
||||
} else if (type == _("SET_BINDING_R")
|
||||
|| type == _("RESET_BINDING_R")
|
||||
|| type == _("SET_METHOD_BODY_R")) {
|
||||
QString msg = QLatin1String(type) + tr(" success : ");
|
||||
msg += value.toBool() ? "1" : "0";
|
||||
if (!value.toBool())
|
||||
emit automaticUpdateFailed();
|
||||
log(LogReceive, msg);
|
||||
} else {
|
||||
log(LogReceive, QLatin1String(type));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user