summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-05-01 06:31:14 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-05-01 06:31:14 (GMT)
commit20e0828d3dcb806a67e29f31447621af1a3d8ea9 (patch)
tree6104f3cde6046157232f9fdf302d9b608623d63b /examples
parent569389e7ab3d052da8bf549827776ffb4d154dba (diff)
downloadQt-20e0828d3dcb806a67e29f31447621af1a3d8ea9.zip
Qt-20e0828d3dcb806a67e29f31447621af1a3d8ea9.tar.gz
Qt-20e0828d3dcb806a67e29f31447621af1a3d8ea9.tar.bz2
Rename QFxView::setXml to QFxView::setQml.
Diffstat (limited to 'examples')
-rw-r--r--examples/declarative/contacts/main.cpp6
-rw-r--r--examples/declarative/minehunt/main.cpp4
2 files changed, 5 insertions, 5 deletions
diff --git a/examples/declarative/contacts/main.cpp b/examples/declarative/contacts/main.cpp
index 6bf9daf..bda6565 100644
--- a/examples/declarative/contacts/main.cpp
+++ b/examples/declarative/contacts/main.cpp
@@ -7,7 +7,7 @@
#include <QTime>
#include <QVBoxLayout>
-const char *defaultFileName("contacts.xml");
+const char *defaultFileName("contacts.qml");
class Contacts : public QWidget
{
@@ -43,8 +43,8 @@ Contacts::Contacts(const QString &fileName, int width, int height, QWidget *pare
QFile file(fileName);
file.open(QFile::ReadOnly);
- QString xml = file.readAll();
- canvas->setXml(xml, fileName);
+ QString qml = file.readAll();
+ canvas->setQml(qml, fileName);
canvas->execute();
}
diff --git a/examples/declarative/minehunt/main.cpp b/examples/declarative/minehunt/main.cpp
index 9db717b..7f10757 100644
--- a/examples/declarative/minehunt/main.cpp
+++ b/examples/declarative/minehunt/main.cpp
@@ -130,8 +130,8 @@ MyWidget::MyWidget(int width, int height, QWidget *parent, Qt::WindowFlags flags
QFile file(fileName);
file.open(QFile::ReadOnly);
- QString xml = file.readAll();
- canvas->setXml(xml, fileName);
+ QString qml = file.readAll();
+ canvas->setQml(qml, fileName);
QmlContext *ctxt = canvas->rootContext();
ctxt->activate();