@@ -31,7 +31,7 @@ Rectangle {
31 property bool interactive
31 property bool interactive
32 property bool spreadEnabled: true // If false, animations and right edge will be disabled
32 property bool spreadEnabled: true // If false, animations and right edge will be disabled
33 property real inverseProgress: 0 // This is the progress for left edge drags, in pixels.
33 property real inverseProgress: 0 // This is the progress for left edge drags, in pixels.
34− property int orientation
34+ property int orientation: Qt.PortraitOrientation
36 color: "black"
36 color: "black"
@@ -369,6 +369,13 @@ Rectangle {
369 progress: appDelegate.progress - spreadView.positionMarker1
369 progress: appDelegate.progress - spreadView.positionMarker1
374+ property: "orientation"
375+ when: appDelegate.interactive
376+ value: root.orientation
372 onClicked: {
379 onClicked: {
373 if (spreadView.phase == 2) {
380 if (spreadView.phase == 2) {
374 if (ApplicationManager.focusedApplicationId == ApplicationManager.get(index).appId) {
381 if (ApplicationManager.focusedApplicationId == ApplicationManager.get(index).appId) {
@@ -391,14 +398,6 @@ Rectangle {
391 spreadView.closingIndex = index;
398 spreadView.closingIndex = index;
392 ApplicationManager.stopApplication(ApplicationManager.get(index).appId);
399 ApplicationManager.stopApplication(ApplicationManager.get(index).appId);
395− onInteractiveChanged: {
397− appDelegate.orientation = Qt.binding( function() { return root.orientation; } );
399− appDelegate.orientation = root.orientation; // breaks the binding intentionally