summaryrefslogtreecommitdiffstats
path: root/tests/manual/rendercapture-qml
diff options
context:
space:
mode:
authorAntti Määttä <antti.maatta@qt.io>2016-08-26 11:34:50 +0300
committerAntti Määttä <antti.maatta@qt.io>2016-10-20 08:20:30 +0000
commit1d6b264abd31b8432c0bb700a18d24c0289d5bc6 (patch)
tree22b447d0908ea664bad7858a15357c56111eebc9 /tests/manual/rendercapture-qml
parente949c8c22efc5935378cda8ca7f23ce5ba69c4a6 (diff)
Update rendercapture-qml example
Add checkbox to toggle multisampling to test that multisampled framebuffers work with rendercapture. Change-Id: I40e15bca457c47cf4cbd9be6667819c69f4e8b15 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'tests/manual/rendercapture-qml')
-rw-r--r--tests/manual/rendercapture-qml/main.qml19
1 files changed, 11 insertions, 8 deletions
diff --git a/tests/manual/rendercapture-qml/main.qml b/tests/manual/rendercapture-qml/main.qml
index 2532c7f9c..83746c3a9 100644
--- a/tests/manual/rendercapture-qml/main.qml
+++ b/tests/manual/rendercapture-qml/main.qml
@@ -71,9 +71,9 @@ Item {
color: "blue"
Scene3D {
-
+ id: scene3d
anchors.fill: parent
- multisample: false
+ multisample: msacheckbox.checked
aspects: ["input", "logic"]
@@ -91,7 +91,7 @@ Item {
text: "Render Capture"
property var reply
- property bool continuous : false
+ property bool continuous : checkbox.checked
property int cid: 1
function doRenderCapture()
@@ -112,11 +112,14 @@ Item {
onClicked: doRenderCapture()
}
- CheckBox {
- id: checkbox
- text: "continuous"
- onCheckedChanged: {
- button.continuous = checkbox.checked
+ RowLayout {
+ CheckBox {
+ id: checkbox
+ text: "continuous"
+ }
+ CheckBox {
+ id: msacheckbox
+ text: "multisample"
}
}
Image {