summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/states
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-10-30 04:15:22 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-10-30 04:15:22 (GMT)
commit45cc1ea534640cb492bd00405bf8fcd5dbfbcf5c (patch)
tree9bbf0cca7e26abfab486c658cc6d4005fd4e74b8 /tests/auto/declarative/states
parentf37e9d787bd418d8f75997a8d46c1c42e842c673 (diff)
downloadQt-45cc1ea534640cb492bd00405bf8fcd5dbfbcf5c.zip
Qt-45cc1ea534640cb492bd00405bf8fcd5dbfbcf5c.tar.gz
Qt-45cc1ea534640cb492bd00405bf8fcd5dbfbcf5c.tar.bz2
Rename QFx classes to QmlGraphics
Diffstat (limited to 'tests/auto/declarative/states')
-rw-r--r--tests/auto/declarative/states/tst_states.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/auto/declarative/states/tst_states.cpp b/tests/auto/declarative/states/tst_states.cpp
index b2532a2..91b6d0b 100644
--- a/tests/auto/declarative/states/tst_states.cpp
+++ b/tests/auto/declarative/states/tst_states.cpp
@@ -22,7 +22,7 @@ void tst_states::basicChanges()
{
QmlComponent rectComponent(&engine, SRCDIR "/data/basicChanges.qml");
- QFxRect *rect = qobject_cast<QFxRect*>(rectComponent.create());
+ QmlGraphicsRect *rect = qobject_cast<QmlGraphicsRect*>(rectComponent.create());
QVERIFY(rect != 0);
QCOMPARE(rect->color(),QColor("red"));
@@ -36,7 +36,7 @@ void tst_states::basicChanges()
{
QmlComponent rectComponent(&engine, SRCDIR "/data/basicChanges2.qml");
- QFxRect *rect = qobject_cast<QFxRect*>(rectComponent.create());
+ QmlGraphicsRect *rect = qobject_cast<QmlGraphicsRect*>(rectComponent.create());
QVERIFY(rect != 0);
QCOMPARE(rect->color(),QColor("red"));
@@ -56,7 +56,7 @@ void tst_states::basicChanges()
{
QmlComponent rectComponent(&engine, SRCDIR "/data/basicChanges3.qml");
- QFxRect *rect = qobject_cast<QFxRect*>(rectComponent.create());
+ QmlGraphicsRect *rect = qobject_cast<QmlGraphicsRect*>(rectComponent.create());
QVERIFY(rect != 0);
QCOMPARE(rect->color(),QColor("red"));
@@ -92,7 +92,7 @@ void tst_states::basicExtension()
{
QmlComponent rectComponent(&engine, SRCDIR "/data/basicExtension.qml");
- QFxRect *rect = qobject_cast<QFxRect*>(rectComponent.create());
+ QmlGraphicsRect *rect = qobject_cast<QmlGraphicsRect*>(rectComponent.create());
QVERIFY(rect != 0);
QCOMPARE(rect->color(),QColor("red"));
@@ -125,7 +125,7 @@ void tst_states::basicExtension()
{
QmlComponent rectComponent(&engine, SRCDIR "/data/fakeExtension.qml");
- QFxRect *rect = qobject_cast<QFxRect*>(rectComponent.create());
+ QmlGraphicsRect *rect = qobject_cast<QmlGraphicsRect*>(rectComponent.create());
QVERIFY(rect != 0);
QCOMPARE(rect->color(),QColor("red"));
@@ -156,7 +156,7 @@ void tst_states::basicBinding()
{
QmlComponent rectComponent(&engine, SRCDIR "/data/basicBinding.qml");
- QFxRect *rect = qobject_cast<QFxRect*>(rectComponent.create());
+ QmlGraphicsRect *rect = qobject_cast<QmlGraphicsRect*>(rectComponent.create());
QVERIFY(rect != 0);
QCOMPARE(rect->color(),QColor("red"));
@@ -183,7 +183,7 @@ void tst_states::basicBinding()
{
QmlComponent rectComponent(&engine, SRCDIR "/data/basicBinding2.qml");
- QFxRect *rect = qobject_cast<QFxRect*>(rectComponent.create());
+ QmlGraphicsRect *rect = qobject_cast<QmlGraphicsRect*>(rectComponent.create());
QVERIFY(rect != 0);
QCOMPARE(rect->color(),QColor("red"));
@@ -213,7 +213,7 @@ void tst_states::basicBinding()
{
QmlComponent rectComponent(&engine, SRCDIR "/data/basicBinding3.qml");
- QFxRect *rect = qobject_cast<QFxRect*>(rectComponent.create());
+ QmlGraphicsRect *rect = qobject_cast<QmlGraphicsRect*>(rectComponent.create());
QVERIFY(rect != 0);
QCOMPARE(rect->color(),QColor("red"));
@@ -237,7 +237,7 @@ void tst_states::basicBinding()
{
QmlComponent rectComponent(&engine, SRCDIR "/data/basicBinding4.qml");
- QFxRect *rect = qobject_cast<QFxRect*>(rectComponent.create());
+ QmlGraphicsRect *rect = qobject_cast<QmlGraphicsRect*>(rectComponent.create());
QVERIFY(rect != 0);
QCOMPARE(rect->color(),QColor("red"));
@@ -263,7 +263,7 @@ void tst_states::basicBinding()
}
}
-class MyRect : public QFxRect
+class MyRect : public QmlGraphicsRect
{
Q_OBJECT
public:
@@ -303,7 +303,7 @@ void tst_states::signalOverride()
rect->doSomething();
QCOMPARE(rect->color(),QColor("blue"));
- QFxRect *innerRect = qobject_cast<QFxRect*>(rect->findChild<QFxRect*>("extendedRect"));
+ QmlGraphicsRect *innerRect = qobject_cast<QmlGraphicsRect*>(rect->findChild<QmlGraphicsRect*>("extendedRect"));
innerRect->setState("green");
rect->doSomething();