From 582f8dcffae369b6d7fc6a0966cd4a8d65fdabab Mon Sep 17 00:00:00 2001 From: Martin Jones Date: Wed, 10 Feb 2010 13:03:13 +1000 Subject: Revert "Compile" This reverts commit 0286ecdb8fc87b2c42d215aaabcbbffb5c508f01. --- tools/qmldebugger/standalone/engine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/qmldebugger/standalone/engine.cpp b/tools/qmldebugger/standalone/engine.cpp index 38782fd..6cfd82b 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(QmlListProperty(this, m_engineItems))); + m_engineView->rootContext()->setContextProperty("engines", qVariantFromValue(&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(QmlListProperty(this, m_engineItems))); + m_engineView->rootContext()->setContextProperty("engines", qVariantFromValue(&m_engineItems)); m_engineView->setVisible(m_engineItems.count() > 1); if (m_engineItems.count() == 1) -- cgit v0.12