aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/qmltests/tst_HomePage.qml27
1 files changed, 22 insertions, 5 deletions
diff --git a/tests/qmltests/tst_HomePage.qml b/tests/qmltests/tst_HomePage.qml
index f4012545..32654372 100644
--- a/tests/qmltests/tst_HomePage.qml
+++ b/tests/qmltests/tst_HomePage.qml
@@ -9,7 +9,7 @@ Item {
height: 600
QtObject {
- id: foo
+ id: redApp
property Item window
property Item loadedWindow: Rectangle { color: "red" }
@@ -25,14 +25,30 @@ Item {
}
QtObject {
- id: bar
+ id: greenApp
+ property Item window
+ property Item loadedWindow: Rectangle { color: "green" }
+
+ property bool active: false
+ property bool canBeActive: true
+
+ property int heightRows: 2
+ property int minHeightRows: 1
+
+ function start() {
+ window = loadedWindow;
+ }
+ }
+
+ QtObject {
+ id: blueApp
property Item window
property Item loadedWindow: Rectangle { color: "blue" }
property bool active: false
property bool canBeActive: true
- property int heightRows: 3
+ property int heightRows: 2
property int minHeightRows: 1
function start() {
@@ -44,8 +60,9 @@ Item {
anchors.fill: parent
widgetsList: ListModel { id: listModel }
Component.onCompleted: {
- listModel.append({"appInfo":foo})
- listModel.append({"appInfo":bar})
+ listModel.append({"appInfo":redApp})
+ listModel.append({"appInfo":greenApp})
+ listModel.append({"appInfo":blueApp})
}
}