From e7e8ce0752e877f8363f9193cf5f30018f3884e1 Mon Sep 17 00:00:00 2001 From: Anton Thomasson Date: Thu, 6 Aug 2020 17:34:14 +0200 Subject: [PATCH] Allow all the orientations! --- qml/components/IntegerInputDialog.qml | 1 + qml/components/LargeChoiceDialog.qml | 1 + qml/harbour-seaprint.qml | 2 +- qml/pages/AboutPage.qml | 2 +- qml/pages/AddPrinterDialog.qml | 1 + qml/pages/BusyPage.qml | 2 ++ qml/pages/FirstPage.qml | 4 ++++ qml/pages/PrinterPage.qml | 2 ++ qml/pages/SettingsPage.qml | 3 +++ 9 files changed, 16 insertions(+), 2 deletions(-) diff --git a/qml/components/IntegerInputDialog.qml b/qml/components/IntegerInputDialog.qml index 414bf2a..9890128 100644 --- a/qml/components/IntegerInputDialog.qml +++ b/qml/components/IntegerInputDialog.qml @@ -3,6 +3,7 @@ import Sailfish.Silica 1.0 Dialog { id: dialog + allowedOrientations: Orientation.All property int value property int min; diff --git a/qml/components/LargeChoiceDialog.qml b/qml/components/LargeChoiceDialog.qml index 7adaa9f..49e3569 100644 --- a/qml/components/LargeChoiceDialog.qml +++ b/qml/components/LargeChoiceDialog.qml @@ -4,6 +4,7 @@ import "../pages/utils.js" as Utils Dialog { id: dialog + allowedOrientations: Orientation.All property string name property string choice diff --git a/qml/harbour-seaprint.qml b/qml/harbour-seaprint.qml index 2f8014f..668fecb 100644 --- a/qml/harbour-seaprint.qml +++ b/qml/harbour-seaprint.qml @@ -9,7 +9,7 @@ ApplicationWindow { initialPage: Component { FirstPage { selectedFile: Qt.application.arguments[1] ? Qt.application.arguments[1] : "" } } cover: Qt.resolvedUrl("cover/CoverPage.qml") - allowedOrientations: defaultAllowedOrientations + allowedOrientations: Orientation.All Item { id: db diff --git a/qml/pages/AboutPage.qml b/qml/pages/AboutPage.qml index bd0efd3..09107ef 100644 --- a/qml/pages/AboutPage.qml +++ b/qml/pages/AboutPage.qml @@ -6,7 +6,7 @@ import "../components" Page { id: aboutPage - allowedOrientations: Orientation.Portrait | Orientation.Landscape | Orientation.LandscapeInverted + allowedOrientations: Orientation.All SilicaFlickable { id: aboutFlickable diff --git a/qml/pages/AddPrinterDialog.qml b/qml/pages/AddPrinterDialog.qml index bbc2714..3c0d809 100644 --- a/qml/pages/AddPrinterDialog.qml +++ b/qml/pages/AddPrinterDialog.qml @@ -4,6 +4,7 @@ import seaprint.ippprinter 1.0 Dialog { id: dialog + allowedOrientations: Orientation.All property string value property string ssid diff --git a/qml/pages/BusyPage.qml b/qml/pages/BusyPage.qml index a42fc3d..a92b219 100644 --- a/qml/pages/BusyPage.qml +++ b/qml/pages/BusyPage.qml @@ -3,6 +3,8 @@ import Sailfish.Silica 1.0 import "utils.js" as Utils Page { + allowedOrientations: Orientation.All + property var printer backNavigation: false Connections { diff --git a/qml/pages/FirstPage.qml b/qml/pages/FirstPage.qml index c925bd1..91b9827 100644 --- a/qml/pages/FirstPage.qml +++ b/qml/pages/FirstPage.qml @@ -303,6 +303,8 @@ Page { Component { id: filePickerPage FilePickerPage { + allowedOrientations: Orientation.All + title: qsTr("Choose file") showSystemFiles: false nameFilters: ["*.pdf", "*.jpg", "*.jpeg", "*.ps"] @@ -316,6 +318,8 @@ Page { Component { id: imagePickerPage ImagePickerPage { + allowedOrientations: Orientation.All + onSelectedContentPropertiesChanged: { page.selectedFile = selectedContentProperties.filePath page.selectedFileType = Mimer.get_type(selectedContentProperties.filePath) diff --git a/qml/pages/PrinterPage.qml b/qml/pages/PrinterPage.qml index dc88831..8d1fc1e 100644 --- a/qml/pages/PrinterPage.qml +++ b/qml/pages/PrinterPage.qml @@ -6,6 +6,8 @@ import seaprint.convertchecker 1.0 import "utils.js" as Utils Page { + allowedOrientations: Orientation.All + id: page property var printer property var jobParams: new Object(); diff --git a/qml/pages/SettingsPage.qml b/qml/pages/SettingsPage.qml index e380305..00d9c75 100644 --- a/qml/pages/SettingsPage.qml +++ b/qml/pages/SettingsPage.qml @@ -2,6 +2,9 @@ import QtQuick 2.0 import Sailfish.Silica 1.0 Page { + + allowedOrientations: Orientation.All + SilicaFlickable { anchors.fill: parent contentHeight: column.height