forked from qt-creator/qt-creator
Inspector: Update Editor on object selection
When an object is selected in the Inspector, the Editor is updated to show the relevant code. Task-number: QTCREATORBUG-8246 Change-Id: I4f7fbcccdeb22849682fa72c63e87a78f48d185b Reviewed-by: hjk <qthjk@ovi.com> Reviewed-by: Christiaan Janssen <christiaan.janssen@digia.com>
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
#include "qmlengine.h"
|
||||
#include "qtmessageloghandler.h"
|
||||
#include "watchdata.h"
|
||||
#include "watchhandler.h"
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
#include <utils/qtcassert.h>
|
||||
@@ -135,6 +136,13 @@ void QmlCppEngine::updateWatchData(const WatchData &data,
|
||||
d->m_activeEngine->updateWatchData(data, flags);
|
||||
}
|
||||
|
||||
void QmlCppEngine::watchDataSelected(const QByteArray &iname)
|
||||
{
|
||||
const WatchData *wd = watchHandler()->findData(iname);
|
||||
if (wd && wd->isInspect())
|
||||
d->m_qmlEngine->watchDataSelected(iname);
|
||||
}
|
||||
|
||||
void QmlCppEngine::watchPoint(const QPoint &point)
|
||||
{
|
||||
d->m_cppEngine->watchPoint(point);
|
||||
|
||||
Reference in New Issue
Block a user