summaryrefslogtreecommitdiffstats
path: root/examples/declarative/imageprovider
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-02-24 02:42:00 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-02-24 02:42:00 (GMT)
commit7c76abb0dc4204043bec9b6fa315f9753a7986ae (patch)
treecee303672cfd138790645e731f2d69472564d4b7 /examples/declarative/imageprovider
parent4066e60e859853cfe3240245ba05271e79839506 (diff)
downloadQt-7c76abb0dc4204043bec9b6fa315f9753a7986ae.zip
Qt-7c76abb0dc4204043bec9b6fa315f9753a7986ae.tar.gz
Qt-7c76abb0dc4204043bec9b6fa315f9753a7986ae.tar.bz2
Change class prefix to from QmlXXX to QDeclarativeXXX, QmlGraphicsXXX to QDeclarativeXXX.
Diffstat (limited to 'examples/declarative/imageprovider')
-rw-r--r--examples/declarative/imageprovider/main.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/examples/declarative/imageprovider/main.cpp b/examples/declarative/imageprovider/main.cpp
index eaaded2..d9d4c1a 100644
--- a/examples/declarative/imageprovider/main.cpp
+++ b/examples/declarative/imageprovider/main.cpp
@@ -41,22 +41,22 @@
#include <QApplication>
-#include <qmlengine.h>
-#include <qmlcontext.h>
-#include <qml.h>
-#include <qmlgraphicsitem.h>
-#include <qmlimageprovider.h>
-#include <qmlview.h>
+#include <qdeclarativeengine.h>
+#include <qdeclarativecontext.h>
+#include <qdeclarative.h>
+#include <qdeclarativeitem.h>
+#include <qdeclarativeimageprovider.h>
+#include <qdeclarativeview.h>
#include <QImage>
#include <QPainter>
/*
- This example illustrates using a QmlImageProvider to serve
+ This example illustrates using a QDeclarativeImageProvider to serve
images asynchronously.
*/
//![0]
-class ColorImageProvider : public QmlImageProvider
+class ColorImageProvider : public QDeclarativeImageProvider
{
public:
// This is run in a low priority thread.
@@ -74,7 +74,7 @@ int main(int argc, char ** argv)
{
QApplication app(argc, argv);
- QmlView view;
+ QDeclarativeView view;
view.engine()->addImageProvider("colors", new ColorImageProvider);
@@ -87,7 +87,7 @@ int main(int argc, char ** argv)
dataList.append("image://colors/purple");
dataList.append("image://colors/yellow");
- QmlContext *ctxt = view.rootContext();
+ QDeclarativeContext *ctxt = view.rootContext();
ctxt->setContextProperty("myModel", QVariant::fromValue(dataList));
view.setSource(QUrl("qrc:view.qml"));