diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-11-10 01:42:00 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-11-10 01:42:00 (GMT) |
commit | 2b1617e7e6050bef8de0f6d2129f4414a1b3ec28 (patch) | |
tree | 0e7fca9239079df3f734a32259efdf3e181daa7c /tests/auto | |
parent | 80cc666f4f3c7cc2fc6aed806951564066011e09 (diff) | |
download | Qt-2b1617e7e6050bef8de0f6d2129f4414a1b3ec28.zip Qt-2b1617e7e6050bef8de0f6d2129f4414a1b3ec28.tar.gz Qt-2b1617e7e6050bef8de0f6d2129f4414a1b3ec28.tar.bz2 |
Test (and fix) animation actions.
Diffstat (limited to 'tests/auto')
19 files changed, 2823 insertions, 5 deletions
diff --git a/tests/auto/declarative/animations/tst_animations.cpp b/tests/auto/declarative/animations/tst_animations.cpp index 372658e..61f0e0a 100644 --- a/tests/auto/declarative/animations/tst_animations.cpp +++ b/tests/auto/declarative/animations/tst_animations.cpp @@ -44,6 +44,7 @@ #include <QtDeclarative/qmlview.h> #include <private/qmlgraphicsrectangle_p.h> #include <private/qmlanimation_p.h> +#include <QVariantAnimation> class tst_animations : public QObject { @@ -61,6 +62,7 @@ private slots: void mixedTypes(); void properties(); void propertiesTransition(); + void easingStringConversion(); }; #define QTIMED_COMPARE(lhs, rhs) do { \ @@ -384,6 +386,22 @@ void tst_animations::propertiesTransition() } } +void tst_animations::easingStringConversion() +{ + QmlNumberAnimation *animation = new QmlNumberAnimation; + animation->setEasing("easeInOutQuad"); + QCOMPARE(static_cast<QVariantAnimation*>(((QmlAbstractAnimation*)animation)->qtAnimation())->easingCurve(), QEasingCurve(QEasingCurve::InOutQuad)); + + animation->setEasing("OutQuad"); + QCOMPARE(static_cast<QVariantAnimation*>(((QmlAbstractAnimation*)animation)->qtAnimation())->easingCurve(), QEasingCurve(QEasingCurve::OutQuad)); + + animation->setEasing("easeOutBounce(amplitude: 5)"); + QCOMPARE(static_cast<QVariantAnimation*>(((QmlAbstractAnimation*)animation)->qtAnimation())->easingCurve().type(), QEasingCurve::OutBounce); + QCOMPARE(static_cast<QVariantAnimation*>(((QmlAbstractAnimation*)animation)->qtAnimation())->easingCurve().amplitude(), qreal(5)); + + delete animation; +} + QTEST_MAIN(tst_animations) #include "tst_animations.moc" diff --git a/tests/auto/declarative/states/tst_states.cpp b/tests/auto/declarative/states/tst_states.cpp index d6df37e..40e9aa8 100644 --- a/tests/auto/declarative/states/tst_states.cpp +++ b/tests/auto/declarative/states/tst_states.cpp @@ -365,13 +365,8 @@ void tst_states::signalOverrideCrash() MyRect *rect = qobject_cast<MyRect*>(rectComponent.create()); QVERIFY(rect != 0); - //QCOMPARE(rect->color(),QColor("red")); - //rect->doSomething(); - //QCOMPARE(rect->color(),QColor("blue")); - rect->setState("overridden"); rect->doSomething(); - //QCOMPARE(rect->color(),QColor("green")); } void tst_states::parentChange() diff --git a/tests/auto/declarative/visual/parentAction/data/parentAction.0.png b/tests/auto/declarative/visual/parentAction/data/parentAction.0.png Binary files differnew file mode 100644 index 0000000..a0032f8 --- /dev/null +++ b/tests/auto/declarative/visual/parentAction/data/parentAction.0.png diff --git a/tests/auto/declarative/visual/parentAction/data/parentAction.1.png b/tests/auto/declarative/visual/parentAction/data/parentAction.1.png Binary files differnew file mode 100644 index 0000000..958b6af --- /dev/null +++ b/tests/auto/declarative/visual/parentAction/data/parentAction.1.png diff --git a/tests/auto/declarative/visual/parentAction/data/parentAction.2.png b/tests/auto/declarative/visual/parentAction/data/parentAction.2.png Binary files differnew file mode 100644 index 0000000..3a1811f --- /dev/null +++ b/tests/auto/declarative/visual/parentAction/data/parentAction.2.png diff --git a/tests/auto/declarative/visual/parentAction/data/parentAction.3.png b/tests/auto/declarative/visual/parentAction/data/parentAction.3.png Binary files differnew file mode 100644 index 0000000..36064c2 --- /dev/null +++ b/tests/auto/declarative/visual/parentAction/data/parentAction.3.png diff --git a/tests/auto/declarative/visual/parentAction/data/parentAction.4.png b/tests/auto/declarative/visual/parentAction/data/parentAction.4.png Binary files differnew file mode 100644 index 0000000..c493a1d --- /dev/null +++ b/tests/auto/declarative/visual/parentAction/data/parentAction.4.png diff --git a/tests/auto/declarative/visual/parentAction/data/parentAction.5.png b/tests/auto/declarative/visual/parentAction/data/parentAction.5.png Binary files differnew file mode 100644 index 0000000..c493a1d --- /dev/null +++ b/tests/auto/declarative/visual/parentAction/data/parentAction.5.png diff --git a/tests/auto/declarative/visual/parentAction/data/parentAction.qml b/tests/auto/declarative/visual/parentAction/data/parentAction.qml new file mode 100644 index 0000000..de27af7 --- /dev/null +++ b/tests/auto/declarative/visual/parentAction/data/parentAction.qml @@ -0,0 +1,1207 @@ +import Qt.VisualTest 4.6 + +VisualTest { + Frame { + msec: 0 + } + Frame { + msec: 16 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 32 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 48 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 64 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 80 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 96 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 112 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 128 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 144 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 160 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 176 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 192 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 208 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 224 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 240 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 256 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 272 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 288 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 304 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 320 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 336 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 352 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 368 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 384 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 400 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 416 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 432 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 448 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 464 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 480 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 496 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 512 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 528 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 544 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 560 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 576 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Mouse { + type: 2 + button: 1 + buttons: 1 + x: 150; y: 274 + modifiers: 0 + sendToViewport: true + } + Frame { + msec: 592 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 608 + hash: "a7bb3d44c8bcf403906afa86f5bc3062" + } + Frame { + msec: 624 + hash: "2b366e6009e70fa0227a1fee662fe1bf" + } + Frame { + msec: 640 + hash: "c12869fb8002aa36c3bfad7fd0979240" + } + Frame { + msec: 656 + hash: "56c583e77b5e0a8707e977dc937c2acf" + } + Frame { + msec: 672 + hash: "6b191d57a45a3f2d010a7f44064e409a" + } + Frame { + msec: 688 + hash: "9457ee33c999a63fa4bd4db5c3ceac8b" + } + Frame { + msec: 704 + hash: "446b23b662640ad6ad8c456f956fe73a" + } + Frame { + msec: 720 + hash: "23c59708069406486e4979c7d59f3f4a" + } + Frame { + msec: 736 + hash: "c9ce43ddca79b5b6f26af2c2259dc071" + } + Frame { + msec: 752 + hash: "e838229ba70c30112918f19bb471fa34" + } + Frame { + msec: 768 + hash: "0cbaeddb2ff6408a37a68fc685e2bca0" + } + Frame { + msec: 784 + hash: "616b4ec719586b151ba3d709e51038bf" + } + Frame { + msec: 800 + hash: "89b2c709f5c3083c204a9450e605c1d4" + } + Frame { + msec: 816 + hash: "427a5c2d13631d899ff2d673e762f114" + } + Frame { + msec: 832 + hash: "958aa9ca5a6b91aa6dfbc2a1ae3e2deb" + } + Frame { + msec: 848 + hash: "09a3ac0010ed8f3df2cfa7ed9d0a92e4" + } + Frame { + msec: 864 + hash: "5607ea54f9990f3232d6f56080e1ef15" + } + Frame { + msec: 880 + hash: "600682467c55288b9d5e65299637dd72" + } + Frame { + msec: 896 + hash: "bc7a238611574a13650f854ceac35032" + } + Frame { + msec: 912 + hash: "e5f6b19b3685a96d4d0c3b8384513643" + } + Frame { + msec: 928 + hash: "d5d23b0fc09136fd1ae121e311866cc3" + } + Frame { + msec: 944 + hash: "5099e5edd1a6bd37f5f6c836a6ca7644" + } + Frame { + msec: 960 + image: "parentAction.0.png" + } + Frame { + msec: 976 + hash: "97dd20f7774cfd8379e1d1b44f8ddc7b" + } + Frame { + msec: 992 + hash: "ab2deea9e4f8c43ed58b5a355800ecda" + } + Frame { + msec: 1008 + hash: "88ec383ce368259d3cc18612b6f5b941" + } + Frame { + msec: 1024 + hash: "f84b20b849a77e50717f99b9d844240e" + } + Frame { + msec: 1040 + hash: "6c042360c2d24ad56cec32d01ce82d6b" + } + Frame { + msec: 1056 + hash: "c86b464720192f3e039fa5d8ab5f09bb" + } + Frame { + msec: 1072 + hash: "35ec432fdf91fcd1dfcd945cfe785b09" + } + Frame { + msec: 1088 + hash: "27a2ec28e4fef006622e8211fd709853" + } + Frame { + msec: 1104 + hash: "8454d1f5ed89551e2a403c869885116a" + } + Frame { + msec: 1120 + hash: "7e33aed53dc4338c168274d972c8e711" + } + Frame { + msec: 1136 + hash: "e0192ea2049d6bae6012f00406630a92" + } + Frame { + msec: 1152 + hash: "a2ea5489a373084169024035a0f69e71" + } + Frame { + msec: 1168 + hash: "6947a72c4d959b90dafdaddcac815b3e" + } + Frame { + msec: 1184 + hash: "0e22cc3c96d0934095b7254f0f28b18b" + } + Frame { + msec: 1200 + hash: "72529ddc6f2678a783aedf445d7038a4" + } + Frame { + msec: 1216 + hash: "38f03c0ee50488ffd23a2fb3d3445461" + } + Frame { + msec: 1232 + hash: "b441721ed30c787874a2a71a94e1ba44" + } + Frame { + msec: 1248 + hash: "1e37f26d78590414b2ef01c72ad136a9" + } + Frame { + msec: 1264 + hash: "88e4af80d068485ebd8c3d51f9bbfe8d" + } + Frame { + msec: 1280 + hash: "107707216c16c629d8409cf006f9f2dc" + } + Frame { + msec: 1296 + hash: "f56f3f4f140ac072f7df47eddfc76844" + } + Frame { + msec: 1312 + hash: "41239a9d8ed793c24967875aabeae8a5" + } + Frame { + msec: 1328 + hash: "30035e37320dae4f9ead01a30895eb38" + } + Frame { + msec: 1344 + hash: "fb2f535b42b862b65f8adb3ad1a46779" + } + Frame { + msec: 1360 + hash: "e10ba7f74d52fc963e20a4647ff0d620" + } + Frame { + msec: 1376 + hash: "5abf5388566bed2fdb71afc8cd7cfe9b" + } + Frame { + msec: 1392 + hash: "91990471563e3c8292e8e8325a1d17a2" + } + Frame { + msec: 1408 + hash: "59a6293a48f83a9197adcffed3f32f15" + } + Frame { + msec: 1424 + hash: "db3e75df318e9f0d239ce9b76e92eff3" + } + Frame { + msec: 1440 + hash: "3b5c64bc64a701edb5c2e40b23443bc3" + } + Frame { + msec: 1456 + hash: "9db08c0375148b2317427591b5f43608" + } + Frame { + msec: 1472 + hash: "2d761f1530846eff87a7625a120e0afd" + } + Frame { + msec: 1488 + hash: "c5460f8c58b83c2ac15842ddb023ad4f" + } + Frame { + msec: 1504 + hash: "0efb51810a2dc359c7964268c98ea8eb" + } + Frame { + msec: 1520 + hash: "b92a42012df57eb261badf1f518b8e67" + } + Frame { + msec: 1536 + hash: "8d348bae62af2d35bdfee806a1c39910" + } + Frame { + msec: 1552 + hash: "762d9bb4ed11d249bfd902a541129d60" + } + Frame { + msec: 1568 + hash: "bddbd9f64a9f7156984feccd5fa94093" + } + Frame { + msec: 1584 + hash: "353a98e1573b0518941ff22bf2776244" + } + Frame { + msec: 1600 + hash: "1765aed97e29f25dee93a77a06557b82" + } + Frame { + msec: 1616 + hash: "73b5c2bdb7f268f7a33e129c8ba44013" + } + Frame { + msec: 1632 + hash: "46ac1976fb9932d0ef6e0b5927386ad9" + } + Frame { + msec: 1648 + hash: "90b5b5b46c9c352e8be41cc74f96133a" + } + Frame { + msec: 1664 + hash: "0efe0036577c890fd45cd7dd53014616" + } + Frame { + msec: 1680 + hash: "7f32df17481abf40ccb33afe6d17085d" + } + Frame { + msec: 1696 + hash: "1fa8544c48a476764f4f8278c14b651d" + } + Frame { + msec: 1712 + hash: "f8f06ece30f690deeba5999ce63bf40b" + } + Frame { + msec: 1728 + hash: "885b230f4b2fe380c7cf68955940d206" + } + Frame { + msec: 1744 + hash: "d0fc5aa4df46099bb46a1d7db30baa09" + } + Frame { + msec: 1760 + hash: "8fa7fe5197cbe1ff67f8a2c47f1f0740" + } + Frame { + msec: 1776 + hash: "aa3b3b03460daf54f085551e1a46c08b" + } + Frame { + msec: 1792 + hash: "35a1728a2430027a9474fb7d61090643" + } + Frame { + msec: 1808 + hash: "2b1cff3986b8b03f1061176a4722b0f9" + } + Frame { + msec: 1824 + hash: "8047be1b35ee3d5078a68c6cdc35eeb7" + } + Frame { + msec: 1840 + hash: "7f7afa48bb7d612b354c8488e72c8339" + } + Frame { + msec: 1856 + hash: "691a876caefce9aa0f5140c17059b8f4" + } + Frame { + msec: 1872 + hash: "903bec66e47db766dc431f060726988c" + } + Frame { + msec: 1888 + hash: "f13593fc891f0b050c01b61963019da1" + } + Frame { + msec: 1904 + hash: "aa00de965bdb370a5974b195c3fb38af" + } + Frame { + msec: 1920 + image: "parentAction.1.png" + } + Frame { + msec: 1936 + hash: "168d3e27261c0943e6262b6be27adfb0" + } + Frame { + msec: 1952 + hash: "6fafebd0b396e7c0a78c767c6af936ba" + } + Frame { + msec: 1968 + hash: "827e3a3fcd6fd8588e9fcc043769b3a8" + } + Frame { + msec: 1984 + hash: "155329bf1c1a6f6c37bf7e6e8a92c59b" + } + Frame { + msec: 2000 + hash: "d3008d1e7cee5170171699ef6fb9aa81" + } + Frame { + msec: 2016 + hash: "5c1244e7806e131a6063f22a66e4eb12" + } + Frame { + msec: 2032 + hash: "fcd6b372229a6cf14face81e9d614456" + } + Frame { + msec: 2048 + hash: "bf1a375a81bf43c5671cccc62e9a0462" + } + Frame { + msec: 2064 + hash: "0e22404508470baaa6621f37361951fa" + } + Frame { + msec: 2080 + hash: "45046f28c103caa161e41861f71731c4" + } + Frame { + msec: 2096 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2112 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2128 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2144 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2160 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2176 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2192 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2208 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2224 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2240 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2256 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2272 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2288 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2304 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2320 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2336 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2352 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2368 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2384 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2400 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2416 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2432 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2448 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2464 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2480 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2496 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2512 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2528 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2544 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2560 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2576 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2592 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2608 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2624 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2640 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2656 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2672 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2688 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2704 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2720 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2736 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2752 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Mouse { + type: 3 + button: 1 + buttons: 0 + x: 150; y: 274 + modifiers: 0 + sendToViewport: true + } + Frame { + msec: 2768 + hash: "7a92731c713470a2b2c91fd6b83447de" + } + Frame { + msec: 2784 + hash: "44a0b46c21bd4c76d44883ba146e3614" + } + Frame { + msec: 2800 + hash: "2224abc3333a2bc5fa1cf3c4e8d6a6f9" + } + Frame { + msec: 2816 + hash: "ea9c05c0295a300e21aacbdfd5b4968e" + } + Frame { + msec: 2832 + hash: "e630e2893f89a6ae536bcbd1a084af07" + } + Frame { + msec: 2848 + hash: "af56f1e79eb3746efb9e4bcbc3fbced8" + } + Frame { + msec: 2864 + hash: "96be8c3ba0d7a85c6f6df877b869b563" + } + Frame { + msec: 2880 + image: "parentAction.2.png" + } + Frame { + msec: 2896 + hash: "603d8684cb6f097e3ab2a2e5ef053112" + } + Frame { + msec: 2912 + hash: "0433d242d1dd40a3792f55f807ebbff4" + } + Frame { + msec: 2928 + hash: "1190067cacc7361f6cfe09f153c7a07e" + } + Frame { + msec: 2944 + hash: "98e917880471511122847ad8a406e3a3" + } + Frame { + msec: 2960 + hash: "fff06869074a3a6c5823ed3fb6fa7a43" + } + Frame { + msec: 2976 + hash: "602d95daee8f160a0fd784931d0a06bd" + } + Frame { + msec: 2992 + hash: "f7e466bbd52f40e88ff567758f4db835" + } + Frame { + msec: 3008 + hash: "54417a4c4fb71d458439ad2e2126f8e1" + } + Frame { + msec: 3024 + hash: "fe150dd5056b9dbf1cd0b196e9a7a47b" + } + Frame { + msec: 3040 + hash: "1384c871bead85916f7bfcdebc370697" + } + Frame { + msec: 3056 + hash: "5f13339cc0e604b75a9d1d85342fa717" + } + Frame { + msec: 3072 + hash: "655069d61b7a44e729a2cbb33d683c3e" + } + Frame { + msec: 3088 + hash: "2324e9e4a02e41855b066983dbf0e61d" + } + Frame { + msec: 3104 + hash: "0217baf091325b95c033ba073bd68ce5" + } + Frame { + msec: 3120 + hash: "c27854c3af5b58db85846a1762ab18ba" + } + Frame { + msec: 3136 + hash: "45246ee6383ceb6260f84571a885ba90" + } + Frame { + msec: 3152 + hash: "d82ded86f093d1a376994cacf43d0343" + } + Frame { + msec: 3168 + hash: "c9179d30f80c6101bca2bed40d6a859f" + } + Frame { + msec: 3184 + hash: "a63e032d20a9d985c6c345434d98a364" + } + Frame { + msec: 3200 + hash: "fc7d6797ce15edf7fadb9dae691ecd5c" + } + Frame { + msec: 3216 + hash: "76cf37ad8c50fed8b1900784b647819c" + } + Frame { + msec: 3232 + hash: "256aab3690c9ba928bb4d4dd3bbfc756" + } + Frame { + msec: 3248 + hash: "90cab52fdefbae4e7d0f0f93b46ebeb0" + } + Frame { + msec: 3264 + hash: "badb5103bf826dc467f6e620cc2b47be" + } + Frame { + msec: 3280 + hash: "e7d0e437de5ebc0fa07b2a4ef11159cb" + } + Frame { + msec: 3296 + hash: "5931b1c3932ab91446324165d7e2603a" + } + Frame { + msec: 3312 + hash: "ce1808db90ba955ab3cb845500f4c013" + } + Frame { + msec: 3328 + hash: "142f8a440d1fe2d868f47ba3006de9d7" + } + Frame { + msec: 3344 + hash: "10d32a6cc90319ea66d7f2c1241590ce" + } + Frame { + msec: 3360 + hash: "7f633559d715396e6de451b3dd2fadbd" + } + Frame { + msec: 3376 + hash: "d44590ae51ceef5e082747c44bc41be9" + } + Frame { + msec: 3392 + hash: "2b498181668fb1fbf65294d575654929" + } + Frame { + msec: 3408 + hash: "7efeeffd08e4de440da83511313de729" + } + Frame { + msec: 3424 + hash: "8de2331393d1e712192d11ed096836d3" + } + Frame { + msec: 3440 + hash: "fa9381ef2e295865a9b8cb9b36a0eacf" + } + Frame { + msec: 3456 + hash: "97debc4432c5ecb7f606a81e5411b02c" + } + Frame { + msec: 3472 + hash: "eb4c1bb1f4398e3c18182c28a015be76" + } + Frame { + msec: 3488 + hash: "a976aa509f4c6f309d9a6011eeae02aa" + } + Frame { + msec: 3504 + hash: "457de7ee05e0ef0ef120a3d4e371c02e" + } + Frame { + msec: 3520 + hash: "0c01f9f150fe33155fa20703735a6d27" + } + Frame { + msec: 3536 + hash: "5af4f80624082a264010247ea8630a1a" + } + Frame { + msec: 3552 + hash: "b23a1191d149549fa29a61b6dc70f037" + } + Frame { + msec: 3568 + hash: "e00fb32cb13b1347e4b7b9fdbcca68e5" + } + Frame { + msec: 3584 + hash: "fef0503c82f253f8bc3fb3e705a98aa7" + } + Frame { + msec: 3600 + hash: "7a9beca28340d2aa89da5e05f5ac2a55" + } + Frame { + msec: 3616 + hash: "f3c57ea07ab486ffa1f46da60de0b8f1" + } + Frame { + msec: 3632 + hash: "ef0a4ad9ac339fd6ea50dbe6baa9387f" + } + Frame { + msec: 3648 + hash: "1b317a9eb4ce022f005d551546c688a4" + } + Frame { + msec: 3664 + hash: "628e912a4a26800b9b7b5e60e60e3a7d" + } + Frame { + msec: 3680 + hash: "3587b75e4d834a88729754d2c2a4b193" + } + Frame { + msec: 3696 + hash: "084bc1360a38123589baec5aae15b4ff" + } + Frame { + msec: 3712 + hash: "47f0f6c3cdf456826a6fd6846e58dcc8" + } + Frame { + msec: 3728 + hash: "ed982c4c3ebd132baaaf43efad40a3f7" + } + Frame { + msec: 3744 + hash: "d7ddce47c23fada4c69d53d934582d71" + } + Frame { + msec: 3760 + hash: "74f2f911bee26c4c551f4c70596753ae" + } + Frame { + msec: 3776 + hash: "3ed7cbf10dfce3a485d7878766cf9da6" + } + Frame { + msec: 3792 + hash: "87a74257551ab6c7fcfe05e815482ae9" + } + Frame { + msec: 3808 + hash: "4f63e4904e97d4ce832b20b7317a9958" + } + Frame { + msec: 3824 + hash: "f912da8781e547c6e28890655c1b8884" + } + Frame { + msec: 3840 + image: "parentAction.3.png" + } + Frame { + msec: 3856 + hash: "faa640ccf993324400254ffb862ac279" + } + Frame { + msec: 3872 + hash: "b67f342424d1b9a364b09da8994fcd6b" + } + Frame { + msec: 3888 + hash: "b2407732194c1e0c2a9bfb379b94b562" + } + Frame { + msec: 3904 + hash: "55733608d0302ef90c124322ac6d8dc6" + } + Frame { + msec: 3920 + hash: "734f5b628a26d3d7c91ee84fb26d5b5f" + } + Frame { + msec: 3936 + hash: "27839fefa4a218cd77843358392bb874" + } + Frame { + msec: 3952 + hash: "8cac19559d37bd2b581cef0a4c707753" + } + Frame { + msec: 3968 + hash: "91422870aa1471571e7dd8ff5103f76c" + } + Frame { + msec: 3984 + hash: "7156166d5f8d13483467ef515627c95d" + } + Frame { + msec: 4000 + hash: "6028e8374c2ce42a9a9e85b4a8b53027" + } + Frame { + msec: 4016 + hash: "17c99592be58d2e03f9f173c47c0649b" + } + Frame { + msec: 4032 + hash: "6084b53186c6a7eda38ac7fa34bf45ce" + } + Frame { + msec: 4048 + hash: "e82131a8a5a06519f49308bbc25738cf" + } + Frame { + msec: 4064 + hash: "77bdb69cbe55d9c503c6aa1c0f974d87" + } + Frame { + msec: 4080 + hash: "b2346ec5d376651347281d5fb00fc4d7" + } + Frame { + msec: 4096 + hash: "36a3b72c9d7f09795c546855a269801d" + } + Frame { + msec: 4112 + hash: "4e5478b33baca797f3f8f72c2c6c51ad" + } + Frame { + msec: 4128 + hash: "e59d12be3ed1f58de010d385ddfe78e5" + } + Frame { + msec: 4144 + hash: "9674106a146effd47c2724a2dd82ae84" + } + Frame { + msec: 4160 + hash: "862cec781f169f713032e6d52d3616ce" + } + Frame { + msec: 4176 + hash: "c8d47bdfb6518ef4827677023313d559" + } + Frame { + msec: 4192 + hash: "19413931b3e788067dfaef39b47d30ff" + } + Frame { + msec: 4208 + hash: "600e426532c0348cd622257b0773efd5" + } + Frame { + msec: 4224 + hash: "6d975e259d4efa108375d271451531c1" + } + Frame { + msec: 4240 + hash: "50b0da4848564c063694202ce16ea808" + } + Frame { + msec: 4256 + hash: "0a9450739031f680735b5210e6a30c3f" + } + Frame { + msec: 4272 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 4288 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 4304 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 4320 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 4336 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 4352 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 4368 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 4384 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 4400 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 4416 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 4432 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 4448 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 4464 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 4480 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 4496 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 4512 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 4528 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 4544 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Key { + type: 6 + key: 16777249 + modifiers: 67108864 + text: "" + autorep: false + count: 1 + } + Frame { + msec: 4560 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 4576 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 4592 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 4608 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 4624 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 4640 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 4656 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 4672 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 4688 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } + Frame { + msec: 4704 + hash: "23ce049cd7e715c28f5845fd1a1fc195" + } +} diff --git a/tests/auto/declarative/visual/parentAction/parentAction.qml b/tests/auto/declarative/visual/parentAction/parentAction.qml new file mode 100644 index 0000000..e69d234 --- /dev/null +++ b/tests/auto/declarative/visual/parentAction/parentAction.qml @@ -0,0 +1,55 @@ +import Qt 4.6 + +Rectangle { + width: 400; height: 400 + Item { + scale: .5 + rotation: 15 + transformOrigin: "Center" + x: 10; y: 10 + Rectangle { + id: MyRect + x: 5 + width: 100; height: 100 + transformOrigin: "BottomLeft" + color: "red" + } + } + MouseRegion { + id: Clickable + anchors.fill: parent + } + + Item { + x: 200; y: 200 + rotation: 52; + scale: 2 + Item { + id: newParent + x: 100; y: 100 + } + } + + states: State { + name: "moved" + when: Clickable.pressed + ParentChange { + target: MyRect + parent: newParent + } + PropertyChanges { + target: MyRect + rotation: -52 + scale: 1 + color: "blue" + } + } + + transitions: Transition { + SequentialAnimation { + ColorAnimation { duration: 500} + ParentAction {} + NumberAnimation { matchProperties: "rotation, scale"; duration: 1000 } + } + } +} diff --git a/tests/auto/declarative/visual/propertyAction/data/propertyAction.0.png b/tests/auto/declarative/visual/propertyAction/data/propertyAction.0.png Binary files differnew file mode 100644 index 0000000..64d6b06 --- /dev/null +++ b/tests/auto/declarative/visual/propertyAction/data/propertyAction.0.png diff --git a/tests/auto/declarative/visual/propertyAction/data/propertyAction.1.png b/tests/auto/declarative/visual/propertyAction/data/propertyAction.1.png Binary files differnew file mode 100644 index 0000000..f7fce15 --- /dev/null +++ b/tests/auto/declarative/visual/propertyAction/data/propertyAction.1.png diff --git a/tests/auto/declarative/visual/propertyAction/data/propertyAction.2.png b/tests/auto/declarative/visual/propertyAction/data/propertyAction.2.png Binary files differnew file mode 100644 index 0000000..3080df5 --- /dev/null +++ b/tests/auto/declarative/visual/propertyAction/data/propertyAction.2.png diff --git a/tests/auto/declarative/visual/propertyAction/data/propertyAction.qml b/tests/auto/declarative/visual/propertyAction/data/propertyAction.qml new file mode 100644 index 0000000..7c8c233 --- /dev/null +++ b/tests/auto/declarative/visual/propertyAction/data/propertyAction.qml @@ -0,0 +1,939 @@ +import Qt.VisualTest 4.6 + +VisualTest { + Frame { + msec: 0 + } + Frame { + msec: 16 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 32 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 48 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 64 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 80 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 96 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 112 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 128 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 144 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 160 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 176 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 192 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 208 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 224 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 240 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 256 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 272 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 288 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 304 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 320 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 336 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 352 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 368 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 384 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 400 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 416 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 432 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 448 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 464 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 480 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 496 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 512 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 528 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 544 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 560 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 576 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 592 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 608 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 624 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 640 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 656 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 672 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 688 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 704 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 720 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 736 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 752 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 768 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 784 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 800 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 816 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 832 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 848 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 864 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 880 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 896 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 912 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 928 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 944 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 960 + image: "propertyAction.0.png" + } + Frame { + msec: 976 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 992 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1008 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1024 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1040 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1056 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1072 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1088 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1104 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1120 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1136 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1152 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1168 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1184 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1200 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1216 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1232 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1248 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1264 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1280 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1296 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1312 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1328 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1344 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1360 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1376 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1392 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1408 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1424 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1440 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1456 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1472 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1488 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1504 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1520 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1536 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1552 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1568 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1584 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1600 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Mouse { + type: 2 + button: 1 + buttons: 1 + x: 109; y: 247 + modifiers: 0 + sendToViewport: true + } + Frame { + msec: 1616 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1632 + hash: "c91921dba899d7a86de3cd013773889f" + } + Frame { + msec: 1648 + hash: "888c0fc86155e10b5fc577ef6ec5755a" + } + Frame { + msec: 1664 + hash: "7fd61a8910bf7b0d2bf57653a268c5d8" + } + Frame { + msec: 1680 + hash: "f42f5073f90a423adf011d0e168c8a9b" + } + Frame { + msec: 1696 + hash: "a3d89deb6cfa2bbbaa1d7d5b5e5b48d5" + } + Frame { + msec: 1712 + hash: "f10e997d7a17c18251a32d58b018105a" + } + Frame { + msec: 1728 + hash: "09ffb57d5f67edfa34d6aad36a002554" + } + Frame { + msec: 1744 + hash: "01f3a2f5b9815f1397a907b099339360" + } + Frame { + msec: 1760 + hash: "58c0910c49748edd2ef8472960179472" + } + Frame { + msec: 1776 + hash: "cc82c5f7f93c5bc1af1c6c509268566a" + } + Frame { + msec: 1792 + hash: "3ef272c6439b85fbc166375d1b98403c" + } + Frame { + msec: 1808 + hash: "98c576f0900e4b8752d1f951bb6bf391" + } + Frame { + msec: 1824 + hash: "4d66dd64d8736ef50163e08723873478" + } + Frame { + msec: 1840 + hash: "9a5d8455b6763456185625811253e0b1" + } + Frame { + msec: 1856 + hash: "77e85731efa786a2492aae19a87523c6" + } + Frame { + msec: 1872 + hash: "f3199d0c860f1236e0b9472bef8785bc" + } + Frame { + msec: 1888 + hash: "f3199d0c860f1236e0b9472bef8785bc" + } + Frame { + msec: 1904 + hash: "32ccdab249268b01d9f1658a736052f1" + } + Frame { + msec: 1920 + image: "propertyAction.1.png" + } + Frame { + msec: 1936 + hash: "db3010ef552146df938c237f6c92bff5" + } + Frame { + msec: 1952 + hash: "101e8595d0301e88376ec52ba9361f84" + } + Frame { + msec: 1968 + hash: "119d548c59baa7e47266d2ceca663288" + } + Frame { + msec: 1984 + hash: "f141fafe102a0b9a2bf33e8c3fc800ff" + } + Frame { + msec: 2000 + hash: "b01f9ca8d4fbff17b3d48c70898a044d" + } + Frame { + msec: 2016 + hash: "cf67954a2d1b22e8d2cfdc26419bafb8" + } + Frame { + msec: 2032 + hash: "7680b2b5a63dea13d733947297e01355" + } + Frame { + msec: 2048 + hash: "af1c017acf6b3c8cff86c9ceb60db3cb" + } + Frame { + msec: 2064 + hash: "0b23ec51f71fddae5e2238ab5754f1db" + } + Frame { + msec: 2080 + hash: "976643961ecbdc86335180ba812b874e" + } + Frame { + msec: 2096 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2112 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2128 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2144 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2160 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2176 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2192 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2208 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2224 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2240 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2256 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2272 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2288 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2304 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2320 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2336 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2352 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2368 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2384 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2400 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2416 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2432 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2448 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2464 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2480 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2496 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2512 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2528 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2544 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2560 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2576 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2592 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2608 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2624 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2640 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2656 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2672 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2688 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2704 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2720 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2736 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2752 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Mouse { + type: 3 + button: 1 + buttons: 0 + x: 109; y: 247 + modifiers: 0 + sendToViewport: true + } + Frame { + msec: 2768 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2784 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2800 + hash: "ab924ae435262e76381c2e4af5d64342" + } + Frame { + msec: 2816 + hash: "d60758fc12471a19d31c85f058f2ded7" + } + Frame { + msec: 2832 + hash: "c62e2956f8eb5d2c8cd76ba05c5929d5" + } + Frame { + msec: 2848 + hash: "f2967ee7e035a9ff258116a2706529f8" + } + Frame { + msec: 2864 + hash: "885c4705c6c29f69c56c44abc1251d75" + } + Frame { + msec: 2880 + image: "propertyAction.2.png" + } + Frame { + msec: 2896 + hash: "f4af6871e522511f95bc4c5abfc2a562" + } + Frame { + msec: 2912 + hash: "b27e1e7e0d90468525309528ccfe2823" + } + Frame { + msec: 2928 + hash: "78e7d84a4466258b40315fe61b7ca15c" + } + Frame { + msec: 2944 + hash: "471013d921d8d6e7468fd6aba0b75c71" + } + Frame { + msec: 2960 + hash: "856048da893c9136ac5740bc89b64128" + } + Frame { + msec: 2976 + hash: "32ccdab249268b01d9f1658a736052f1" + } + Frame { + msec: 2992 + hash: "2264fa3acd979f104633c1301a0efd8f" + } + Frame { + msec: 3008 + hash: "f3199d0c860f1236e0b9472bef8785bc" + } + Frame { + msec: 3024 + hash: "ad899d1ecaa43a5541be7b70413caee5" + } + Frame { + msec: 3040 + hash: "4e652524c992f5ee1b987275ca509728" + } + Frame { + msec: 3056 + hash: "a44b3dec2a016694bc8553a51b29d46c" + } + Frame { + msec: 3072 + hash: "7fbe20346bc3c28c345e0797b55599f3" + } + Frame { + msec: 3088 + hash: "bcff18ad433bb4f08126ee66efb037d1" + } + Frame { + msec: 3104 + hash: "836666c64f73c38e87de95944ff2fe72" + } + Frame { + msec: 3120 + hash: "4379982d23db239b1741b5d72c53e160" + } + Frame { + msec: 3136 + hash: "0ed9476337214e1493c1510b8a4c90f8" + } + Frame { + msec: 3152 + hash: "dab637406577a1924c7dbb30680e1af3" + } + Frame { + msec: 3168 + hash: "dcc79277fdb8966e5a3f2ed1b2fc4292" + } + Frame { + msec: 3184 + hash: "5f207d1dfad4907f200d76104881bf56" + } + Frame { + msec: 3200 + hash: "3434fc7f81e859722585dae97c557864" + } + Frame { + msec: 3216 + hash: "7c775b9be8c5293d4962324574267c22" + } + Frame { + msec: 3232 + hash: "da0ff6955c2e4cd86421bdb9053f56e6" + } + Frame { + msec: 3248 + hash: "a1297d525a3ad41abbbb7c2f15efd4fb" + } + Frame { + msec: 3264 + hash: "5326b220995b2a1eaa308ad10fd353fa" + } + Frame { + msec: 3280 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 3296 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 3312 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 3328 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 3344 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Key { + type: 6 + key: 16777249 + modifiers: 67108864 + text: "" + autorep: false + count: 1 + } + Frame { + msec: 3360 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 3376 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 3392 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 3408 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 3424 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 3440 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 3456 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 3472 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 3488 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 3504 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 3520 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 3536 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 3552 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 3568 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 3584 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 3600 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 3616 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 3632 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } +} diff --git a/tests/auto/declarative/visual/propertyAction/propertyAction.qml b/tests/auto/declarative/visual/propertyAction/propertyAction.qml new file mode 100644 index 0000000..a9d3c74 --- /dev/null +++ b/tests/auto/declarative/visual/propertyAction/propertyAction.qml @@ -0,0 +1,34 @@ +import Qt 4.6 + +Rectangle { + width: 400; height: 400 + Rectangle { + id: MyRect + width: 100; height: 100 + color: "red" + } + MouseRegion { + id: Clickable + anchors.fill: parent + } + + states: State { + name: "state1" + when: Clickable.pressed + PropertyChanges { + target: MyRect + x: 50; y: 50 + color: "blue" + } + } + + transitions: Transition { + to: "state1" + reversible: true + SequentialAnimation { + ColorAnimation {} + PropertyAction { matchProperties: "x" } + NumberAnimation { matchProperties: "y"; easing: "InOutQuad" } + } + } +} diff --git a/tests/auto/declarative/visual/scriptAction/data/scriptAction.0.png b/tests/auto/declarative/visual/scriptAction/data/scriptAction.0.png Binary files differnew file mode 100644 index 0000000..64d6b06 --- /dev/null +++ b/tests/auto/declarative/visual/scriptAction/data/scriptAction.0.png diff --git a/tests/auto/declarative/visual/scriptAction/data/scriptAction.1.png b/tests/auto/declarative/visual/scriptAction/data/scriptAction.1.png Binary files differnew file mode 100644 index 0000000..1a25c63 --- /dev/null +++ b/tests/auto/declarative/visual/scriptAction/data/scriptAction.1.png diff --git a/tests/auto/declarative/visual/scriptAction/data/scriptAction.qml b/tests/auto/declarative/visual/scriptAction/data/scriptAction.qml new file mode 100644 index 0000000..01da490 --- /dev/null +++ b/tests/auto/declarative/visual/scriptAction/data/scriptAction.qml @@ -0,0 +1,535 @@ +import Qt.VisualTest 4.6 + +VisualTest { + Frame { + msec: 0 + } + Frame { + msec: 16 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 32 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 48 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 64 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 80 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 96 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 112 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 128 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 144 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 160 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 176 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 192 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 208 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 224 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 240 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 256 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 272 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 288 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 304 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 320 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 336 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 352 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 368 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 384 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 400 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 416 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 432 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 448 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 464 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 480 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 496 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 512 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 528 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 544 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 560 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 576 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 592 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 608 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 624 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 640 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 656 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 672 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 688 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 704 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 720 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 736 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 752 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 768 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 784 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 800 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 816 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 832 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 848 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 864 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 880 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 896 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 912 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 928 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 944 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 960 + image: "scriptAction.0.png" + } + Frame { + msec: 976 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 992 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1008 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1024 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1040 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1056 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1072 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1088 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Mouse { + type: 2 + button: 1 + buttons: 1 + x: 146; y: 259 + modifiers: 0 + sendToViewport: true + } + Frame { + msec: 1104 + hash: "55b713dcb7c810bf126e06cc97d26d24" + } + Frame { + msec: 1120 + hash: "9850cd8ed4643900409d1a87ef0bc4cf" + } + Frame { + msec: 1136 + hash: "1cf03396b01e931e4e7e8e7e57e19c5f" + } + Frame { + msec: 1152 + hash: "25fe648b85ec2d82621853dcbdbf695a" + } + Frame { + msec: 1168 + hash: "1ca701e56fe387d5849f6933eb53aee9" + } + Frame { + msec: 1184 + hash: "b39ecb792659a053a8985e2a849d6d51" + } + Frame { + msec: 1200 + hash: "9a783432a054beec81cc5687f75a36dc" + } + Frame { + msec: 1216 + hash: "edbd222d7ba6c6f819ded45fe316d461" + } + Frame { + msec: 1232 + hash: "eaf20159c4b90f90872bbd514d3a0cec" + } + Frame { + msec: 1248 + hash: "964807dd9b91e765577a773ef1ce2593" + } + Frame { + msec: 1264 + hash: "16e12026ab14657b0f36b8315684455d" + } + Frame { + msec: 1280 + hash: "d001a6b2fec3c66baaa45d9ff93b3f63" + } + Frame { + msec: 1296 + hash: "fef11eb5f635bc11cd9679b7213b3b92" + } + Frame { + msec: 1312 + hash: "0a0cd5f5004048d88712cfe6943470c0" + } + Frame { + msec: 1328 + hash: "0d83178afdae5feaa9915d56c24373ad" + } + Frame { + msec: 1344 + hash: "0a9e6e0b7b23ce93dc4e1f886cf9c7d1" + } + Frame { + msec: 1360 + hash: "f3199d0c860f1236e0b9472bef8785bc" + } + Frame { + msec: 1376 + hash: "f3199d0c860f1236e0b9472bef8785bc" + } + Frame { + msec: 1392 + hash: "32ccdab249268b01d9f1658a736052f1" + } + Frame { + msec: 1408 + hash: "dc98f32a1a2d6e74998123b5232107b0" + } + Frame { + msec: 1424 + hash: "db3010ef552146df938c237f6c92bff5" + } + Frame { + msec: 1440 + hash: "101e8595d0301e88376ec52ba9361f84" + } + Frame { + msec: 1456 + hash: "119d548c59baa7e47266d2ceca663288" + } + Frame { + msec: 1472 + hash: "f141fafe102a0b9a2bf33e8c3fc800ff" + } + Frame { + msec: 1488 + hash: "b01f9ca8d4fbff17b3d48c70898a044d" + } + Frame { + msec: 1504 + hash: "cf67954a2d1b22e8d2cfdc26419bafb8" + } + Frame { + msec: 1520 + hash: "7680b2b5a63dea13d733947297e01355" + } + Frame { + msec: 1536 + hash: "af1c017acf6b3c8cff86c9ceb60db3cb" + } + Frame { + msec: 1552 + hash: "0b23ec51f71fddae5e2238ab5754f1db" + } + Frame { + msec: 1568 + hash: "976643961ecbdc86335180ba812b874e" + } + Frame { + msec: 1584 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 1600 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 1616 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 1632 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 1648 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 1664 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 1680 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 1696 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 1712 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 1728 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 1744 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 1760 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 1776 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 1792 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 1808 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 1824 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 1840 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 1856 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 1872 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Key { + type: 6 + key: 16777249 + modifiers: 67108864 + text: "" + autorep: false + count: 1 + } + Frame { + msec: 1888 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 1904 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 1920 + image: "scriptAction.1.png" + } + Frame { + msec: 1936 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 1952 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 1968 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 1984 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2000 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2016 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2032 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } + Frame { + msec: 2048 + hash: "aeed60899abb6c486a5b1df81f9a0224" + } +} diff --git a/tests/auto/declarative/visual/scriptAction/scriptAction.qml b/tests/auto/declarative/visual/scriptAction/scriptAction.qml new file mode 100644 index 0000000..b1254e2 --- /dev/null +++ b/tests/auto/declarative/visual/scriptAction/scriptAction.qml @@ -0,0 +1,35 @@ +import Qt 4.6 + +Rectangle { + width: 400; height: 400 + Rectangle { + id: myRect + width: 100; height: 100 + color: "red" + } + MouseRegion { + id: Clickable + anchors.fill: parent + } + + states: State { + name: "state1" + when: Clickable.pressed + PropertyChanges { + target: myRect + x: 50; y: 50 + } + StateChangeScript { + name: "setColor" + script: myRect.color = "blue" + } + } + + transitions: Transition { + SequentialAnimation { + NumberAnimation { matchProperties: "x"; easing: "InOutQuad" } + ScriptAction { stateChangeScriptName: "setColor" } + NumberAnimation { matchProperties: "y"; easing: "InOutQuad" } + } + } +} |