aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/nodetypes_ng
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2019-08-15 18:40:58 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2019-08-15 18:44:54 +0200
commit2be575b4b1e6f6e11a8dbd0b1c05c003828d2598 (patch)
tree55d2bfaff9583b3e1e9f3291f4b91f34adae1d92 /tests/manual/nodetypes_ng
parent4a5939d26d1e36efdb2b30cdee1f3672587c3fa5 (diff)
parent9e32b23a1514f367921b4a9ee25bc864a008463c (diff)
Merge remote-tracking branch 'origin/wip/qt6' into wip/cmake
Diffstat (limited to 'tests/manual/nodetypes_ng')
-rw-r--r--tests/manual/nodetypes_ng/MultiClipRects.qml20
1 files changed, 15 insertions, 5 deletions
diff --git a/tests/manual/nodetypes_ng/MultiClipRects.qml b/tests/manual/nodetypes_ng/MultiClipRects.qml
index 793ebeae93..2d3804af21 100644
--- a/tests/manual/nodetypes_ng/MultiClipRects.qml
+++ b/tests/manual/nodetypes_ng/MultiClipRects.qml
@@ -61,8 +61,8 @@ Item {
GradientStop { position: 1; color: "black" }
}
- // Clip using scissor, 2 levels.
- // This means that the lightGreen-yellow-blue batch's clip list will have two clips.
+ // Clip using scissor, up to 2 levels. This means that the
+ // lightGreen-yellow-blue batch's clip list will have two clips.
Row {
spacing: 10
Repeater {
@@ -103,9 +103,9 @@ Item {
}
}
- // Clip using stencil, 2 levels.
- // This means that the lightGreen-yellow batch's clip list will have two clips
- // and so two stencil draw calls before drawing the actual content.
+ // Clip using stencil, up to 3 levels. This means that the
+ // lightGreen-yellow-blue batch's clip list will have three clips and
+ // so two stencil draw calls before drawing the actual content.
Row {
spacing: 10
Repeater {
@@ -133,6 +133,16 @@ Item {
x: 75
y: 75
NumberAnimation on rotation { from: 360; to: 0; duration: 5000; loops: Animation.Infinite; }
+ clip: true
+
+ Rectangle {
+ color: "blue"
+ width: 50
+ height: 50
+ x: 0
+ y: 0
+ NumberAnimation on rotation { from: 360; to: 0; duration: 5000; loops: Animation.Infinite; }
+ }
}
}
}