@@ -26,7 +26,8 @@ Rectangle {
26 color: "black"
26 color: "black"
28 property var application
28 property var application
29− onApplicationChanged: print("setting app to", application.appId, application.screenshot)
29+
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()
44 QtObject {
43 QtObject {
46 property var newApplication
45 property var newApplication
@@ -48,10 +47,8 @@ Rectangle {
50 id: newImage
49 id: newImage
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 : ""
@@ -64,7 +61,6 @@ Rectangle {
64 anchors.bottom: parent.bottom
61 anchors.bottom: parent.bottom
67−// Rectangle { anchors.fill: parent; color: "yellow" }
69 SequentialAnimation {
65 SequentialAnimation {
70 id: switchToAnimation
66 id: switchToAnimation