~ci-train-bot/unity8/unity8-ubuntu-zesty-2314

« back to all changes in this revision

Viewing changes to tests/qmltests/Stage/tst_ApplicationWindow.qml

  • Committer: Bileto Bot
  • Author(s): Daniel d'Andrada
  • Date: 2016-12-07 13:45:04 UTC
  • mfrom: (2704.3.1 fixMakeTryApplicationWindow)
  • Revision ID: ci-train-bot@canonical.com-20161207134504-ck23y4wd36a2qjil
Fix "make tryApplicationWindow"

No surface was showing up on the screen
Also remove outdated button (feature is no longer there)

Approved by: Albert Astals Cid, Unity8 CI Bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
                surfaceOrientationAngle: 0
54
54
                interactive: true
55
55
                focus: true
 
56
                requestedWidth: width
 
57
                requestedHeight: height
56
58
                Component.onDestruction: {
57
59
                    applicationWindowLoader.itemDestroyed = true;
58
60
                }
150
152
                    }
151
153
                }
152
154
            }
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
 
 
173
155
        }
174
156
    }
175
157