on xenial help sign in
fix bad merge
commit1a85ae94c6a562b5b43ee01e96e9da34ef612b4b authorMichael Zanetti <michael.zanetti@canonical.com> dateMon 9 Nov 2015, 11:27 (11 years ago) parentf49273a
3 files changed+3−36
qml/Stages/DesktopStage.qml+1−8 qml/Stages/WindowResizeArea.qml−26 tests/qmltests/tst_Shell.qml+2−2
qml/Stages/DesktopStage.qml+1−8
@@ -330,14 +330,6 @@ AbstractStage {
330330 name: "maximizedRight"; when: appDelegate.maximizedRight && !appDelegate.minimized
331331 PropertyChanges { target: appDelegate; x: root.width/2; y: units.gu(3); width: root.width/2; height: root.height - units.gu(3) }
332332 },
333− State {
334− name: "maximizedLeft"; when: appDelegate.maximizedLeft && !appDelegate.minimized
335− PropertyChanges { target: appDelegate; x: 0; y: units.gu(3); width: root.width/2; height: root.height - units.gu(3) }
336− },
337− State {
338− name: "maximizedRight"; when: appDelegate.maximizedRight && !appDelegate.minimized
339− PropertyChanges { target: appDelegate; x: root.width/2; y: units.gu(3); width: root.width/2; height: root.height - units.gu(3) }
340− },
341333 State {
342334 name: "minimized"; when: appDelegate.minimized
343335 PropertyChanges {
@@ -353,6 +345,7 @@ AbstractStage {
353345 transitions: [
354346 Transition {
355347 to: "normal"
348+ enabled: appDelegate.animationsEnabled
356349 PropertyAction { target: appDelegate; properties: "visuallyMinimized,visuallyMaximized" }
357350 PropertyAnimation { target: appDelegate; properties: "x,y,opacity,width,height,scale" }
358351 },
qml/Stages/WindowResizeArea.qml−26
@@ -39,32 +39,6 @@ MouseArea {
3939 property int screenWidth: 0
4040 property int screenHeight: 0
4141
42− QtObject {
43− id: priv
44−
45− property int normalX: 0
46− property int normalY: 0
47− property int normalWidth: 0
48− property int normalHeight: 0
49−
50− function updateNormalGeometry() {
51− if (root.target.state == "normal") {
52− normalX = root.target.x
53− normalY = root.target.y
54− normalWidth = root.target.width
55− normalHeight = root.target.height
56− }
57− }
58− }
59−
60− Connections {
61− target: root.target
62− onXChanged: priv.updateNormalGeometry();
63− onYChanged: priv.updateNormalGeometry();
64− onWidthChanged: priv.updateNormalGeometry();
65− onHeightChanged: priv.updateNormalGeometry();
66− }
67−
6842 QtObject {
6943 id: priv
7044 objectName: "priv"
tests/qmltests/tst_Shell.qml+2−2
@@ -344,9 +344,9 @@ Rectangle {
344344 var app2 = ApplicationManager.startApplication("webbrowser-app")
345345 var app3 = ApplicationManager.startApplication("camera-app")
346346 var app4 = ApplicationManager.startApplication("facebook-webapp")
347− var app7 = ApplicationManager.startApplication("camera-app")
347+ var app5 = ApplicationManager.startApplication("camera-app")
348348 var app6 = ApplicationManager.startApplication("gallery-app")
349− var app5 = ApplicationManager.startApplication("calendar-app")
349+ var app7 = ApplicationManager.startApplication("calendar-app")
350350 waitUntilAppWindowIsFullyLoaded(app7);
351351 }
352352