summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-02-09 08:38:27 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-02-09 08:38:27 (GMT)
commit0286ecdb8fc87b2c42d215aaabcbbffb5c508f01 (patch)
treefb7b754b15678898c41a419604385c4cce6fbf72 /tools
parentd914555badcd4761864657e1e335e657b791453f (diff)
downloadQt-0286ecdb8fc87b2c42d215aaabcbbffb5c508f01.zip
Qt-0286ecdb8fc87b2c42d215aaabcbbffb5c508f01.tar.gz
Qt-0286ecdb8fc87b2c42d215aaabcbbffb5c508f01.tar.bz2
Compile
Diffstat (limited to 'tools')
-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)