summaryrefslogtreecommitdiffstats
path: root/examples/datavisualization/qml3doscilloscope/qml/qml3doscilloscope/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/datavisualization/qml3doscilloscope/qml/qml3doscilloscope/main.qml')
-rw-r--r--examples/datavisualization/qml3doscilloscope/qml/qml3doscilloscope/main.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/datavisualization/qml3doscilloscope/qml/qml3doscilloscope/main.qml b/examples/datavisualization/qml3doscilloscope/qml/qml3doscilloscope/main.qml
index 70484c18..ba733c21 100644
--- a/examples/datavisualization/qml3doscilloscope/qml/qml3doscilloscope/main.qml
+++ b/examples/datavisualization/qml3doscilloscope/qml/qml3doscilloscope/main.qml
@@ -75,7 +75,7 @@ Item {
axisZ.segmentCount: 4
measureFps: true
- onCurrentFpsChanged: {
+ onCurrentFpsChanged: (fps)=> {
if (fps > 10)
fpsText.text = "FPS: " + Math.round(surfaceGraph.currentFps)
else
@@ -118,7 +118,7 @@ Item {
Rectangle {
width: parent.width
- height: flatShadingToggle.height * 2
+ height: flatShadingToggle.implicitHeight * 2
anchors.left: parent.left
anchors.top: parent.top
color: surfaceGraph.theme.backgroundColor