QtDeclarative: No longer use QDeclarative compatibility defines.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Thu, 19 Apr 2012 15:31:32 +0000 (17:31 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 19 Apr 2012 22:41:12 +0000 (00:41 +0200)
Change-Id: Icbd9777cf1d978468c8023712ed90cd3c7dda56f
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
tests/auto/quick/qquickgridview/tst_qquickgridview.cpp
tests/auto/quick/qquicktext/tst_qquicktext.cpp

index bc0108c..f5019fc 100644 (file)
@@ -47,6 +47,7 @@
 #include <QtQml/qqmlcontext.h>
 #include <QtQml/qqmlexpression.h>
 #include <QtQml/qqmlincubator.h>
+#include <QtQml/qqmlcontext.h>
 #include <QtQuick/private/qquickitem_p.h>
 #include <QtQuick/private/qquickgridview_p.h>
 #include <QtQuick/private/qquicktext_p.h>
@@ -1265,7 +1266,7 @@ void tst_QQuickGridView::moved_defaultLayout(QQuickGridView::Flow flow,
     for (int i = 0; i < 30; i++)
         model.addItem("Item" + QString::number(i), "");
 
-    QDeclarativeContext *ctxt = canvas->rootContext();
+    QQmlContext *ctxt = canvas->rootContext();
     ctxt->setContextProperty("testModel", &model);
     ctxt->setContextProperty("testTopToBottom", flow == QQuickGridView::FlowTopToBottom);
     ctxt->setContextProperty("testRightToLeft", horizLayout == Qt::RightToLeft);
index a31b30d..125e056 100644 (file)
@@ -1688,7 +1688,7 @@ void tst_qquicktext::boundingRect()
 {
     QFETCH(QString, format);
 
-    QDeclarativeComponent component(&engine);
+    QQmlComponent component(&engine);
     component.setData("import QtQuick 2.0\n Text { textFormat:" + format.toUtf8() + "}", QUrl());
     QScopedPointer<QObject> object(component.create());
     QQuickText *text = qobject_cast<QQuickText *>(object.data());