diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2019-04-09 16:52:16 +0300 |
---|---|---|
committer | Konstantin Ritt <ritt.ks@gmail.com> | 2019-04-09 16:51:51 +0000 |
commit | fbaf1d8e3292929e79b7c7dcdbe8f28533809ceb (patch) | |
tree | 8d3df41f0bb9662dd475e6fb0cf3573f21b4569d /tests | |
parent | 863cbcf01813192a07bc8656b5b2a7bb7beb5b41 (diff) |
LottieAnimation: make `source` property of QUrl type
and replace QFile with QQmlFile to make LottieAnimation component
support file, qrc and whatever scheme QNetworkAccessManager supports.
On Android, assets scheme is also supported now.
Change-Id: I014130c8154c7aa386ca271083bcf206755bd937
Reviewed-by: Rebecca Worledge <rebecca.worledge@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/imports/tst_main.qml | 2 | ||||
-rw-r--r-- | tests/manual/testApp/main.qml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/imports/tst_main.qml b/tests/auto/imports/tst_main.qml index 788d385..6e59da9 100644 --- a/tests/auto/imports/tst_main.qml +++ b/tests/auto/imports/tst_main.qml @@ -43,7 +43,7 @@ Item { x: 0 y: 0 quality: LottieAnimation.HighQuality - source: ":/rec_pos_col_opa.json" + source: "rec_pos_col_opa.json" onFinished: { bmAnim.start(); diff --git a/tests/manual/testApp/main.qml b/tests/manual/testApp/main.qml index fdc1878..56d6f89 100644 --- a/tests/manual/testApp/main.qml +++ b/tests/manual/testApp/main.qml @@ -56,7 +56,7 @@ Window { y: 10 * index loops: LottieAnimation.Infinite quality: LottieAnimation.MediumQuality - source: ":/rect_rotate.json" + source: "rect_rotate.json" } } } |