@@ -33,7 +33,7 @@ Item {
33 readonly property bool locked: spreadView.phase == 2
33 readonly property bool locked: spreadView.phase == 2
35 function select(appId) {
35 function select(appId) {
36− spreadView.snapTo(priv.indexOf(appId))
36+ spreadView.snapTo(priv.indexOf(appId));
39 onWidthChanged: {
39 onWidthChanged: {
@@ -58,8 +58,8 @@ Item {
58 spreadView.snapTo(ApplicationManager.count - 1);
58 spreadView.snapTo(ApplicationManager.count - 1);
60 spreadView.phase = 0;
60 spreadView.phase = 0;
61− spreadView.contentX = -spreadView.shift
61+ spreadView.contentX = -spreadView.shift;
62− priv.switchToApp(appId)
62+ priv.switchToApp(appId);
@@ -81,7 +81,7 @@ Item {
82 function switchToApp(appId) {
82 function switchToApp(appId) {
83 if (priv.focusedAppId) {
83 if (priv.focusedAppId) {
84− spreadView.focusChanging = true
84+ spreadView.focusChanging = true;
85 ApplicationManager.focusApplication(appId);
85 ApplicationManager.focusApplication(appId);
87 ApplicationManager.focusApplication(appId);
87 ApplicationManager.focusApplication(appId);
@@ -172,9 +172,9 @@ Item {
172 snapAnimation.targetContentX = -shift;
172 snapAnimation.targetContentX = -shift;
173 snapAnimation.start();
173 snapAnimation.start();
174 } else if (shiftedContentX < positionMarker2 * width) {
174 } else if (shiftedContentX < positionMarker2 * width) {
175− snapTo(1)
175+ snapTo(1);
176 } else if (shiftedContentX < positionMarker3 * width) {
176 } else if (shiftedContentX < positionMarker3 * width) {
177− snapTo(1)
177+ snapTo(1);
178 } else if (phase < 2){
178 } else if (phase < 2){
179 // Add 1 pixel to make sure we definitely hit positionMarker4 even with rounding errors of the animation.
179 // Add 1 pixel to make sure we definitely hit positionMarker4 even with rounding errors of the animation.
180 snapAnimation.targetContentX = width * positionMarker4 + 1 - shift;
180 snapAnimation.targetContentX = width * positionMarker4 + 1 - shift;
@@ -213,7 +213,7 @@ Item {
213 if (spreadView.selectedIndex >= 0) {
213 if (spreadView.selectedIndex >= 0) {
214 ApplicationManager.focusApplication(ApplicationManager.get(spreadView.selectedIndex).appId);
214 ApplicationManager.focusApplication(ApplicationManager.get(spreadView.selectedIndex).appId);
216− spreadView.selectedIndex = -1
216+ spreadView.selectedIndex = -1;
217 spreadView.phase = 0;
217 spreadView.phase = 0;
218 spreadView.contentX = -spreadView.shift;
218 spreadView.contentX = -spreadView.shift;
@@ -233,7 +233,7 @@ Item {
234 onWidthChanged: {
234 onWidthChanged: {
235 if (spreadView.closingIndex >= 0) {
235 if (spreadView.closingIndex >= 0) {
236− spreadView.contentX = Math.min(spreadView.contentX, width - spreadView.width - spreadView.shift)
236+ spreadView.contentX = Math.min(spreadView.contentX, width - spreadView.width - spreadView.shift);
@@ -269,7 +269,7 @@ Item {
269 UbuntuNumberAnimation {
269 UbuntuNumberAnimation {
270 onRunningChanged: {
270 onRunningChanged: {
271 if (!running) {
271 if (!running) {
272− spreadView.closingIndex = -1
272+ spreadView.closingIndex = -1;
@@ -281,7 +281,7 @@ Item {
281 duration: UbuntuAnimation.FastDuration
281 duration: UbuntuAnimation.FastDuration
282 onRunningChanged: {
282 onRunningChanged: {
283 if (!running) {
283 if (!running) {
284− spreadView.focusChanging = false
284+ spreadView.focusChanging = false;
@@ -335,9 +335,9 @@ Item {
337 onClosed: {
337 onClosed: {
338− spreadView.draggedIndex = -1
338+ spreadView.draggedIndex = -1;
339− spreadView.closingIndex = index
339+ spreadView.closingIndex = index;
340− ApplicationManager.stopApplication(ApplicationManager.get(index).appId)
340+ ApplicationManager.stopApplication(ApplicationManager.get(index).appId);
@@ -414,5 +414,4 @@ Item {