diff options
Diffstat (limited to 'tests/manual/nodetypes_ng/MultiClipRects.qml')
-rw-r--r-- | tests/manual/nodetypes_ng/MultiClipRects.qml | 20 |
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; } + } } } } |