summaryrefslogtreecommitdiffstats
path: root/demos/declarative/minehunt
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-02-23 06:46:44 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-02-23 06:46:44 (GMT)
commit5ffd6c0fba0ecc709551e414ed0649de15ac3754 (patch)
tree7db7006ef6349b48a75729766362e44d06999442 /demos/declarative/minehunt
parent113e350e36c0ff31824bc238160094814dc3fb4f (diff)
downloadQt-5ffd6c0fba0ecc709551e414ed0649de15ac3754.zip
Qt-5ffd6c0fba0ecc709551e414ed0649de15ac3754.tar.gz
Qt-5ffd6c0fba0ecc709551e414ed0649de15ac3754.tar.bz2
Remove QmlView::execute(). QmlView::setSource() does it all now.
Task-number: QT-2538
Diffstat (limited to 'demos/declarative/minehunt')
-rw-r--r--demos/declarative/minehunt/main.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/demos/declarative/minehunt/main.cpp b/demos/declarative/minehunt/main.cpp
index 0b862e3..a897919 100644
--- a/demos/declarative/minehunt/main.cpp
+++ b/demos/declarative/minehunt/main.cpp
@@ -167,13 +167,11 @@ MyWidget::MyWidget(int width, int height, QWidget *parent, Qt::WindowFlags flags
canvas->setFixedSize(width, height);
vbox->addWidget(canvas);
- canvas->setSource(QUrl::fromLocalFile(fileName));
-
QmlContext *ctxt = canvas->rootContext();
ctxt->addDefaultObject(this);
ctxt->setContextProperty("tiles", QVariant::fromValue<QList<Tile*>*>(&_tiles));//QTBUG-5675
- canvas->execute();
+ canvas->setSource(QUrl::fromLocalFile(fileName));
}
MyWidget::~MyWidget()