summaryrefslogtreecommitdiffstats
path: root/tools/qmldebugger/standalone/engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/qmldebugger/standalone/engine.cpp')
-rw-r--r--tools/qmldebugger/standalone/engine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/qmldebugger/standalone/engine.cpp b/tools/qmldebugger/standalone/engine.cpp
index 6cfd82b..38782fd 100644
--- a/tools/qmldebugger/standalone/engine.cpp
+++ b/tools/qmldebugger/standalone/engine.cpp
@@ -88,7 +88,7 @@ EnginePane::EnginePane(QmlDebugConnection *conn, QWidget *parent)
Q_ASSERT(enginesFile.isOpen());
m_engineView = new QmlView(this);
- m_engineView->rootContext()->setContextProperty("engines", qVariantFromValue(&m_engineItems));
+ m_engineView->rootContext()->setContextProperty("engines", qVariantFromValue(QmlListProperty<QObject>(this, m_engineItems)));
m_engineView->setContentResizable(true);
m_engineView->setQml(enginesFile.readAll());
m_engineView->execute();
@@ -205,7 +205,7 @@ void EnginePane::enginesChanged()
m_engineItems << new DebuggerEngineItem(engines.at(ii).name(),
engines.at(ii).debugId());
- m_engineView->rootContext()->setContextProperty("engines", qVariantFromValue(&m_engineItems));
+ m_engineView->rootContext()->setContextProperty("engines", qVariantFromValue(QmlListProperty<QObject>(this, m_engineItems)));
m_engineView->setVisible(m_engineItems.count() > 1);
if (m_engineItems.count() == 1)