summaryrefslogtreecommitdiffstats
path: root/tests/qmlperf/qml/qmlperf/main.qml
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@theqtcompany.com>2015-04-14 14:23:20 +0300
committerMiikka Heikkinen <miikka.heikkinen@theqtcompany.com>2015-04-14 14:26:46 +0300
commit5ba7f70d0d94de720d49b37b2d257b51b9afd026 (patch)
tree19f8f355a85a913a194cf610731ceebd8d8fb643 /tests/qmlperf/qml/qmlperf/main.qml
parent62f90e25eec23cfac83985993f355feeac5b9f2c (diff)
parent916d67d2664b0262cd03b28ad0c694924dd09b13 (diff)
Merge branch 'develop'v1.2.1
Diffstat (limited to 'tests/qmlperf/qml/qmlperf/main.qml')
-rw-r--r--tests/qmlperf/qml/qmlperf/main.qml26
1 files changed, 19 insertions, 7 deletions
diff --git a/tests/qmlperf/qml/qmlperf/main.qml b/tests/qmlperf/qml/qmlperf/main.qml
index 796325e0..0f9f22f7 100644
--- a/tests/qmlperf/qml/qmlperf/main.qml
+++ b/tests/qmlperf/qml/qmlperf/main.qml
@@ -1,15 +1,15 @@
/****************************************************************************
**
-** Copyright (C) 2014 Digia Plc
+** Copyright (C) 2015 The Qt Company Ltd
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.io
+** For any questions to The Qt Company, please use contact form at http://qt.io
**
** This file is part of the Qt Data Visualization module.
**
** Licensees holding valid commercial license for Qt may use this file in
** accordance with the Qt License Agreement provided with the Software
** or, alternatively, in accordance with the terms contained in a written
-** agreement between you and Digia.
+** agreement between you and The Qt Company.
**
** If you have questions regarding the use of this file, please use
** contact form at http://qt.io
@@ -32,7 +32,7 @@ Rectangle {
Button {
id: changeButton
- width: 350
+ width: parent.width / 7
height: 50
anchors.left: parent.left
enabled: true
@@ -54,7 +54,7 @@ Rectangle {
Text {
id: fpsText
text: "Reading"
- width: 300
+ width: (parent.width / 7) * 3
height: 50
anchors.left: changeButton.right
verticalAlignment: Text.AlignVCenter
@@ -63,7 +63,7 @@ Rectangle {
Button {
id: optimization
- width: 300
+ width: parent.width / 7
height: 50
anchors.left: fpsText.right
enabled: true
@@ -82,7 +82,7 @@ Rectangle {
Button {
id: itemAdd
- width: 300
+ 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