diff options
author | Mika Salmela <mika.salmela@theqtcompany.com> | 2014-12-08 13:24:27 +0200 |
---|---|---|
committer | Mika Salmela <mika.salmela@theqtcompany.com> | 2014-12-08 13:25:03 +0200 |
commit | 1ab6dc39778ea3379f3c626104726935be3804db (patch) | |
tree | c72d72f96112403c26a281e54a5a2e814abcab8a /tests/qmlperf/qml | |
parent | b492b273712aa09c6309516f1df7a1684b371c18 (diff) |
Write fps to file.
Change-Id: I303c243b25da0003ca86e5085b913f54a14dc86f
Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com>
Diffstat (limited to 'tests/qmlperf/qml')
-rw-r--r-- | tests/qmlperf/qml/qmlperf/main.qml | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/tests/qmlperf/qml/qmlperf/main.qml b/tests/qmlperf/qml/qmlperf/main.qml index 138d3970..6daaad8e 100644 --- a/tests/qmlperf/qml/qmlperf/main.qml +++ b/tests/qmlperf/qml/qmlperf/main.qml @@ -32,7 +32,7 @@ Rectangle { Button { id: changeButton - width: parent.width / 6 + width: parent.width / 7 height: 50 anchors.left: parent.left enabled: true @@ -54,7 +54,7 @@ Rectangle { Text { id: fpsText text: "Reading" - width: parent.width / 2 + width: (parent.width / 7) * 3 height: 50 anchors.left: changeButton.right verticalAlignment: Text.AlignVCenter @@ -63,7 +63,7 @@ Rectangle { Button { id: optimization - width: parent.width / 6 + width: parent.width / 7 height: 50 anchors.left: fpsText.right enabled: true @@ -82,7 +82,7 @@ Rectangle { Button { id: itemAdd - width: parent.width / 6 + width: parent.width / 7 height: 50 anchors.left: optimization.right enabled: true @@ -93,6 +93,18 @@ Rectangle { } } + Button { + id: writeLine + width: parent.width / 7 + height: 50 + anchors.left: itemAdd.right + enabled: true + text: "Write" + onClicked: { + dataGenerator.writeLine(itemCount, scatterPlot.currentFps.toFixed(1)); + } + } + Item { id: graphView width: mainview.width |