on xenial help sign in
Unrotate ApplicationScreenshot - unity-mir rotates snapshot for us now
e297c21Gerry Boland
qml/Components/ApplicationScreenshot.qml+6−11
@@ -15,7 +15,6 @@
15 */
15 */
16
16
17import QtQuick 2.0
17import QtQuick 2.0
18−import QtQuick.Window 2.0
19import Ubuntu.Components 0.1
18import Ubuntu.Components 0.1
20import Unity.Application 0.1
19import Unity.Application 0.1
21
20
@@ -51,15 +50,11 @@ Item {
51 visible: applicationScreenshot.withBackground
50 visible: applicationScreenshot.withBackground
52 }
51 }
53
52
54− OrientationHelper {
55− orientationAngle: Screen.angleBetween(Screen.primaryOrientation, nativeOrientation) // compensate for Shell rotation
56− transitionEnabled: false
57− ApplicationImage {
53+ ApplicationImage {
58− id: applicationImage
54+ id: applicationImage
59− objectName: "screenshot image"
55+ objectName: "screenshot image"
60− anchors.fill: parent
56+ anchors.fill: parent
61− visible: applicationScreenshot.application != null && ready
57+ visible: applicationScreenshot.application != null && ready
62− source: ApplicationManager.findApplication((application) ? application.appId : "")
58+ source: ApplicationManager.findApplication((application) ? application.appId : "")
63− }
64 }
59 }
65}
60}