on xenial help sign in
Have tablet behave as before
commit5ff9fca01d7ad741b657eadaf7b7682964699817 authorGerry Boland <gerry.boland@canonical.com> dateWed 27 Aug 2014, 22:42 (12 years ago) parentbbb24a4
1 file changed+3−7
qml/Stages/TabletStage.qml+3−7
qml/Stages/TabletStage.qml+3−7
@@ -551,14 +551,10 @@ Rectangle {
551551 }
552552
553553 onInteractiveChanged: {
554− if (isInSideStage) {
555− appDelegate.orientation = Qt.PortraitOrientation; // FIXME! Need Proper Rotation Support
554+ if (interactive) {
555+ appDelegate.orientation = Qt.binding( function() { return root.orientation; } );
556556 } else {
557− if (interactive) {
558− appDelegate.orientation = Qt.binding( function() { return root.orientation; } );
559− } else {
560− appDelegate.orientation = root.orientation; // breaks the binding intentionally
561− }
557+ appDelegate.orientation = root.orientation; // breaks the binding intentionally
562558 }
563559 }
564560