Skip to content

Commit

Permalink
[ApplicationWindow] orientation now is part of compositor
Browse files Browse the repository at this point in the history
  • Loading branch information
neochapay committed Feb 5, 2025
1 parent d2106c4 commit 811c450
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/controls/qml/ApplicationWindow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,13 @@ NemoWindow {

property alias pageStack: stackView
property alias initialPage: stackView.initialItem
property alias orientation: contentArea.uiOrientation

property bool isUiPortrait: applicationWindow.width < applicationWindow.height

property alias mainMenu: mainMenuArea.sourceComponent
property int mainMenuWidth: Theme.itemWidthExtraLarge

color: Theme.backgroundColor


//Handles orientation of keyboard, MInputMethodQuick.appOrientation.
contentOrientation: orientation
onOrientationChanged: {
if (applicationWindow.isOrientationAllowed(applicationWindow.orientation)) {
contentArea.filteredOrientation = applicationWindow.orientation
}

contentOrientation = orientation
}

onGoBack: {
pageStack.pop()
}
Expand Down

0 comments on commit 811c450

Please sign in to comment.