on xenial help sign in
Remove unused orientationAngle properties

They were used back when apps rotated themselves

commit1844ea15bdffd1df324a5e2483d2eb8035825867 authorDaniel d'Andrada <daniel.dandrada@canonical.com> dateWed 4 Jun 2014, 09:30 (12 years ago) parent8fc0f86
7 files changed−24
qml/Dash/Apps/RunningApplicationTile.qml−3 qml/Dash/Apps/RunningApplicationsGrid.qml−3 qml/Dash/Dash.qml−3 qml/Dash/DashContent.qml−5 qml/Dash/GenericScopeView.qml−5 qml/OrientedShell.qml−1 qml/Shell.qml−4
qml/Dash/Apps/RunningApplicationTile.qml−3
@@ -32,9 +32,6 @@ AbstractButton {
3232 width: thumbnail.width
3333 height: thumbnail.height + labelContainer.height
3434
35− // Orientation angle of the Shell UI, relative to the scene (QQuickView's) root item.
36− property int orientationAngle
37−
3835 property bool terminationModeEnabled: false
3936
4037 onClicked: {
qml/Dash/Apps/RunningApplicationsGrid.qml−3
@@ -28,8 +28,6 @@ ResponsiveFlowView {
2828 property alias enableHeightBehavior: heightBehaviour.enabled
2929 property bool enableHeightBehaviorOnNextCreation: model.count === 0
3030
31− property int orientationAngle
32−
3331 Behavior on height {
3432 id: heightBehaviour
3533 enabled: false
@@ -65,7 +63,6 @@ ResponsiveFlowView {
6563 RunningApplicationTile {
6664 id: runningAppTile
6765 objectName: "runningAppTile " + model.name
68− orientationAngle: root.orientationAngle
6966 anchors {
7067 top: parent.top
7168 horizontalCenter: parent.horizontalCenter
qml/Dash/Dash.qml−3
@@ -26,8 +26,6 @@ Showable {
2626
2727 visible: shown
2828
29− property int orientationAngle
30−
3129 property ListModel searchHistory: SearchHistoryModel {}
3230 property bool searchable: !dashContent.previewOpen && !scopeItem.previewOpen
3331
@@ -76,7 +74,6 @@ Showable {
7674 objectName: "dashContent"
7775 width: parent.width
7876 height: parent.height
79− orientationAngle: dash.orientationAngle
8077 model: filteredScopes
8178 scopes: scopes
8279 searchHistory: dash.searchHistory
qml/Dash/DashContent.qml−5
@@ -23,7 +23,6 @@ import "../Components"
2323Item {
2424 id: dashContent
2525
26− property int orientationAngle
2726 property var model: null
2827 property var scopes: null
2928 readonly property alias currentIndex: dashContentList.currentIndex
@@ -154,10 +153,6 @@ Item {
154153 item.isCurrent = Qt.binding(function() { return visible && ListView.isCurrentItem })
155154 item.tabBarHeight = dashPageHeader.implicitHeight;
156155 dashContent.scopeLoaded(item.scope.id)
157−
158− if ("orientationAngle" in item) {
159− item.orientationAngle = Qt.binding(function() { return dashContent.orientationAngle })
160− }
161156 }
162157 Connections {
163158 target: isCurrent ? scope : null
qml/Dash/GenericScopeView.qml−5
@@ -25,7 +25,6 @@ import "../Components/ListItems" as ListItems
2525FocusScope {
2626 id: scopeView
2727
28− property int orientationAngle
2928 property var scope: null
3029 property SortFilterProxyModel categories: categoryFilter
3130 property bool isCurrent: false
@@ -167,10 +166,6 @@ FocusScope {
167166 item.model = Qt.binding(function() { return results })
168167 }
169168
170− if ("orientationAngle" in item) {
171− item.orientationAngle = Qt.binding(function() { return scopeView.orientationAngle })
172− }
173−
174169 item.objectName = Qt.binding(function() { return categoryId })
175170 if (item.expandable) {
176171 var shouldFilter = categoryId != categoryView.expandedCategoryId;
qml/OrientedShell.qml−1
@@ -135,6 +135,5 @@ Item {
135135 Shell {
136136 id: shell
137137 transformOrigin: Item.TopLeft
138− orientationAngle: orientedShell.acceptedOrientationAngle
139138 }
140139}
qml/Shell.qml−4
@@ -36,8 +36,6 @@ import Unity.Notifications 1.0 as NotificationBackend
3636FocusScope {
3737 id: shell
3838
39− property int orientationAngle
40−
4139 property int supportedScreenOrientations: {
4240 if (stages.shown && ApplicationManager.topmostApplication) {
4341 return ApplicationManager.topmostApplication.supportedOrientations;
@@ -124,8 +122,6 @@ FocusScope {
124122 id: dash
125123 objectName: "dash"
126124
127− orientationAngle: shell.orientationAngle
128−
129125 available: !greeter.shown && !lockscreen.shown
130126 hides: [stages, launcher, panel.indicators]
131127 shown: disappearingAnimationProgress !== 1.0 && greeterWrapper.showProgress !== 1.0