~ubuntu-sdk-team/ubuntu-ui-toolkit/orientationManual

« back to all changes in this revision

Viewing changes to modules/Ubuntu/Components/MainViewBase.qml

  • Committer: Christian Dywan
  • Date: 2015-04-02 16:00:37 UTC
  • Revision ID: christian@twotoasts.de-20150402160037-hywcni94p9pq3m1w
Revise AP tests for consistency and comments for clarity

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
            }
58
58
        }
59
59
 
60
 
        // Functions to allow Autopilot to handle orientation
 
60
        // Function provided here because Autopilot can't change property
 
61
        // Also UbuntuApplication is not accessible via introspection
61
62
        objectName: "MainViewBaseStyledItem"
62
63
        function setOrientation(newOrientation) {
63
64
            if (newOrientation == 'Landscape')
67
68
            else
68
69
                UbuntuApplication.orientation = newOrientation
69
70
        }
70
 
        function getOrientation() {
71
 
            return UbuntuApplication.orientation
72
 
        }
73
71
    }
74
72
 
75
73
    active: true