aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarko Niemelä <marko.a.niemela@nokia.com>2012-01-31 11:34:43 +0200
committerMarko Niemelä <marko.a.niemela@nokia.com>2012-01-31 11:34:43 +0200
commitedc307c3576f1a491587f550d9016b0745466554 (patch)
tree330f97c6bac56ec1e93e6b915846bc0dbbb5b995 /tests
parent6cc6b3b0047358f47ba35e1096fa83cafb82d3a4 (diff)
TestBed background rect changed to be square
Diffstat (limited to 'tests')
-rw-r--r--tests/manual/testbed/TestCaseTemplate.qml11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/manual/testbed/TestCaseTemplate.qml b/tests/manual/testbed/TestCaseTemplate.qml
index 099e4cd..7d571f4 100644
--- a/tests/manual/testbed/TestCaseTemplate.qml
+++ b/tests/manual/testbed/TestCaseTemplate.qml
@@ -40,7 +40,7 @@
import QtQuick 2.0
-Rectangle {
+Item {
id: main
property real imageSize: Math.min(height, width - 220)
@@ -54,7 +54,6 @@ Rectangle {
property int fpsCount: 0
anchors.fill: parent
- color: bgColor
onDummyChanged: fpsCount++;
@@ -75,9 +74,15 @@ Rectangle {
}
}
+ Rectangle {
+ id: backgroundColor
+ anchors.fill: testItemContainer
+ color: bgColor
+ }
+
Image {
id: background
- anchors.fill: parent
+ anchors.fill: testItemContainer
fillMode: Image.Tile
source: bgColor.toString() == "#010101" ? "images/background.png" : ""
}