aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2016-05-13 11:25:35 +0200
committerMitch Curtis <mitch.curtis@qt.io>2016-05-13 09:29:45 +0000
commit73f5c10ccae8554c063a201402ebd956a2db9c48 (patch)
tree1eb13308f6dda8923e778f47fdffe86512dce97d /tests/manual
parentc256d154520123232c7dd3e2e3557a60833406f3 (diff)
Center testbench window in screen
On big screens, it's annoying to have to constantly reposition the window. Change-Id: I96e9c5bbeefe8646d1461f6e063305856e3aa676 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'tests/manual')
-rw-r--r--tests/manual/testbench/main.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/manual/testbench/main.qml b/tests/manual/testbench/main.qml
index 492dddc4..bbeb795b 100644
--- a/tests/manual/testbench/main.qml
+++ b/tests/manual/testbench/main.qml
@@ -48,6 +48,8 @@ import QtQuick.Controls.Universal 2.0
ApplicationWindow {
id: window
visible: true
+ x: Screen.width / 2 - width / 2
+ y: Screen.height / 2 - height / 2
width: 750
height: 1000