QmlJSDebugger: Highlight items only if in Observer mode

Task-number: QTCREATORBUG-2672
Reviewed-by: Lasse Holmstedt
This commit is contained in:
Kai Koehne
2010-10-14 14:14:56 +02:00
parent 542796523d
commit 1839015452
@@ -716,9 +716,11 @@ void QDeclarativeViewObserverPrivate::_q_onCurrentObjectsChanged(QList<QObject*>
gfxObjects << gfxObj;
}
}
setSelectedItemsForTools(items);
clearHighlight();
highlight(gfxObjects, QDeclarativeViewObserverPrivate::IgnoreContext);
if (designModeBehavior) {
setSelectedItemsForTools(items);
clearHighlight();
highlight(gfxObjects, QDeclarativeViewObserverPrivate::IgnoreContext);
}
}
QString QDeclarativeViewObserver::idStringForObject(QObject *obj)