on xenial help sign in
cleanup
53b5d27Michael Zanetti
qml/Stages/SwitchingApplicationImage.qml+2−6
@@ -26,7 +26,8 @@ Rectangle {
26 color: "black"
26 color: "black"
27
27
28 property var application
28 property var application
29− onApplicationChanged: print("setting app to", application.appId, application.screenshot)
29+
30+ signal switched()
30
31
31 function switchTo(application) {
32 function switchTo(application) {
32 if (root.application == application) {
33 if (root.application == application) {
@@ -39,8 +40,6 @@ Rectangle {
39 switchToAnimation.start()
40 switchToAnimation.start()
40 }
41 }
41
42
42− signal switched()
43−
44 QtObject {
43 QtObject {
45 id: priv
44 id: priv
46 property var newApplication
45 property var newApplication
@@ -48,10 +47,8 @@ Rectangle {
48
47
49 Image {
48 Image {
50 id: newImage
49 id: newImage
51− visible: true
52 anchors.bottom: parent.bottom
50 anchors.bottom: parent.bottom
53 width: root.width
51 width: root.width
54−// height: sourceSize.height
55 source: priv.newApplication ? priv.newApplication.screenshot : ""
52 source: priv.newApplication ? priv.newApplication.screenshot : ""
56 }
53 }
57
54
@@ -64,7 +61,6 @@ Rectangle {
64 anchors.bottom: parent.bottom
61 anchors.bottom: parent.bottom
65
62
66 }
63 }
67−// Rectangle { anchors.fill: parent; color: "yellow" }
68
64
69 SequentialAnimation {
65 SequentialAnimation {
70 id: switchToAnimation
66 id: switchToAnimation