on xenial help sign in
Fix make tryApplicationWindow

No surface was showing up on the screen

commitbfd63227d03d53f8798680e6035975c36905c7ae authorDaniel d'Andrada <daniel.dandrada@canonical.com> dateFri 25 Nov 2016, 16:43 (10 years ago) parent9212688
1 file changed+2−20
tests/qmltests/Stage/tst_ApplicationWindow.qml+2−20
tests/qmltests/Stage/tst_ApplicationWindow.qml+2−20
@@ -53,6 +53,8 @@ Rectangle {
5353 surfaceOrientationAngle: 0
5454 interactive: true
5555 focus: true
56+ requestedWidth: width
57+ requestedHeight: height
5658 Component.onDestruction: {
5759 applicationWindowLoader.itemDestroyed = true;
5860 }
@@ -150,26 +152,6 @@ Rectangle {
150152 }
151153 }
152154 }
153−
154− Button {
155− anchors { left: parent.left; right: parent.right }
156− activeFocusOnPress: false
157− text: "Rotate device \u27F3"
158− onClicked: {
159− var orientation = applicationWindowLoader.item.orientation
160− if (orientation == Qt.PortraitOrientation) {
161− orientation = Qt.LandscapeOrientation;
162− } else if (orientation == Qt.LandscapeOrientation) {
163− orientation = Qt.InvertedPortraitOrientation;
164− } else if (orientation == Qt.InvertedPortraitOrientation) {
165− orientation = Qt.InvertedLandscapeOrientation;
166− } else {
167− orientation = Qt.PortraitOrientation;
168− }
169− applicationWindowLoader.item.orientation = orientation;
170− }
171− }
172−
173155 }
174156 }
175157