From bfb3c424abc7c839dc44de0e36024ede99ece736 Mon Sep 17 00:00:00 2001 From: Kent Hansen Date: Fri, 14 Oct 2011 10:51:42 +0200 Subject: Rename Qt Quick-specific classes to QQuick* The QSG (SceneGraph) prefix is too generic for Qt Quick(2)-specific classes. All the classes and files in the declarative/items directory have been renamed. In particular, for classes that are currently public, the renaming is as follows: QSGView --> QQuickView QSGCanvas --> QQuickCanvas QSGItem --> QQuickItem QSGPaintedItem --> QQuickPaintedItem The header files have been renamed accordingly (e.g. qsgview.h --> qquickview.h). Change-Id: Iac937fff81db20bb639486a793c3aeb5230b038c Reviewed-by: Kent Hansen --- .../qdeclarativebinding/tst_qdeclarativebinding.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/auto/declarative/qdeclarativebinding/tst_qdeclarativebinding.cpp') diff --git a/tests/auto/declarative/qdeclarativebinding/tst_qdeclarativebinding.cpp b/tests/auto/declarative/qdeclarativebinding/tst_qdeclarativebinding.cpp index de34d9e009..ea05963827 100644 --- a/tests/auto/declarative/qdeclarativebinding/tst_qdeclarativebinding.cpp +++ b/tests/auto/declarative/qdeclarativebinding/tst_qdeclarativebinding.cpp @@ -42,7 +42,7 @@ #include #include #include -#include +#include #include "../shared/util.h" class tst_qdeclarativebinding : public QObject @@ -70,7 +70,7 @@ void tst_qdeclarativebinding::binding() { QDeclarativeEngine engine; QDeclarativeComponent c(&engine, QUrl::fromLocalFile(TESTDATA("test-binding.qml"))); - QSGRectangle *rect = qobject_cast(c.create()); + QQuickRectangle *rect = qobject_cast(c.create()); QVERIFY(rect != 0); QDeclarativeBind *binding3 = qobject_cast(rect->findChild("binding3")); @@ -98,7 +98,7 @@ void tst_qdeclarativebinding::whenAfterValue() { QDeclarativeEngine engine; QDeclarativeComponent c(&engine, QUrl::fromLocalFile(TESTDATA("test-binding2.qml"))); - QSGRectangle *rect = qobject_cast(c.create()); + QQuickRectangle *rect = qobject_cast(c.create()); QVERIFY(rect != 0); QCOMPARE(rect->color(), QColor("yellow")); @@ -114,10 +114,10 @@ void tst_qdeclarativebinding::restoreBinding() { QDeclarativeEngine engine; QDeclarativeComponent c(&engine, QUrl::fromLocalFile(TESTDATA("restoreBinding.qml"))); - QSGRectangle *rect = qobject_cast(c.create()); + QQuickRectangle *rect = qobject_cast(c.create()); QVERIFY(rect != 0); - QSGRectangle *myItem = qobject_cast(rect->findChild("myItem")); + QQuickRectangle *myItem = qobject_cast(rect->findChild("myItem")); QVERIFY(myItem != 0); myItem->setY(25); @@ -144,10 +144,10 @@ void tst_qdeclarativebinding::restoreBindingWithLoop() { QDeclarativeEngine engine; QDeclarativeComponent c(&engine, QUrl::fromLocalFile(TESTDATA("restoreBindingWithLoop.qml"))); - QSGRectangle *rect = qobject_cast(c.create()); + QQuickRectangle *rect = qobject_cast(c.create()); QVERIFY(rect != 0); - QSGRectangle *myItem = qobject_cast(rect->findChild("myItem")); + QQuickRectangle *myItem = qobject_cast(rect->findChild("myItem")); QVERIFY(myItem != 0); myItem->setY(25); @@ -179,7 +179,7 @@ void tst_qdeclarativebinding::deletedObject() { QDeclarativeEngine engine; QDeclarativeComponent c(&engine, QUrl::fromLocalFile(TESTDATA("deletedObject.qml"))); - QSGRectangle *rect = qobject_cast(c.create()); + QQuickRectangle *rect = qobject_cast(c.create()); QVERIFY(rect != 0); QGuiApplication::sendPostedEvents(0, QEvent::DeferredDelete); -- cgit v1.2.3