summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/qmlvolume/qml/qmlvolume/main.qml11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/qmlvolume/qml/qmlvolume/main.qml b/tests/qmlvolume/qml/qmlvolume/main.qml
index 7af94b21..aec5f075 100644
--- a/tests/qmlvolume/qml/qmlvolume/main.qml
+++ b/tests/qmlvolume/qml/qmlvolume/main.qml
@@ -39,7 +39,7 @@ Item {
width: dataView.width
height: dataView.height
orthoProjection: true
- measureFps: true
+ //measureFps: true
onCurrentFpsChanged: {
if (fps > 10)
@@ -125,10 +125,15 @@ Item {
text: "Slice"
onClicked: {
- if (volumeItem.sliceIndexZ == -1)
+ if (volumeItem.sliceIndexZ == -1) {
volumeItem.sliceIndexZ = 128
- else
+ volumeItem.drawSlices = true
+ volumeItem.drawSliceFrames = true
+ } else {
volumeItem.sliceIndexZ = -1
+ volumeItem.drawSlices = false
+ volumeItem.drawSliceFrames = false
+ }
}
}
NewButton {