diff --git a/qml/pages/About.qml b/qml/pages/About.qml index 6f3031c..5383092 100644 --- a/qml/pages/About.qml +++ b/qml/pages/About.qml @@ -33,6 +33,9 @@ import Sailfish.Silica 1.0 // Define the Layout of the About Page Page { id: aboutPage + + allowedOrientations: Orientation.All + SilicaFlickable { id: flickable anchors.fill: parent diff --git a/qml/pages/AddOTP.qml b/qml/pages/AddOTP.qml index 782f7a6..11e4224 100644 --- a/qml/pages/AddOTP.qml +++ b/qml/pages/AddOTP.qml @@ -36,6 +36,8 @@ import "../lib/storage.js" as DB // Import the storage library for Config-Access Dialog { id: addOTP + allowedOrientations: Orientation.All + // We get the Object of the parent page on call to refresh it after adding a new Entry property QtObject parentPage: null diff --git a/qml/pages/ExportPage.qml b/qml/pages/ExportPage.qml index ea60aaa..290953f 100644 --- a/qml/pages/ExportPage.qml +++ b/qml/pages/ExportPage.qml @@ -38,6 +38,8 @@ import "../lib/gibberish-aes.js" as Gibberish //Import AES encryption library Dialog { id: exportPage + allowedOrientations: Orientation.All + // We get the Object of the parent page on call to refresh it after adding a new Entry property QtObject parentPage: null property string mode: "import" diff --git a/qml/pages/MainView.qml b/qml/pages/MainView.qml index 2a7e540..43f7272 100644 --- a/qml/pages/MainView.qml +++ b/qml/pages/MainView.qml @@ -36,6 +36,8 @@ import "../lib/crypto.js" as OTP Page { id: mainPage + allowedOrientations: Orientation.All + // This holds the time of the last update of the page as Unix Timestamp (in Milliseconds) property double lastUpdated: 0 @@ -119,16 +121,20 @@ Page { width: parent.width maximumValue: 29 anchors.top: parent.top - anchors.topMargin: 48 + anchors.topMargin: 36 * Theme.pixelRatio // Only show when there are enries visible: appWin.listModel.count } + + SilicaListView { id: otpList + header: PageHeader { title: "SailOTP" } + anchors.fill: parent model: appWin.listModel width: parent.width diff --git a/qml/pages/QRPage.qml b/qml/pages/QRPage.qml index f5339bd..719eb82 100644 --- a/qml/pages/QRPage.qml +++ b/qml/pages/QRPage.qml @@ -33,6 +33,8 @@ import Sailfish.Silica 1.0 Page { id: qrpage + allowedOrientations: Orientation.All + property string paramType: "" property string paramLabel: "" property string paramKey: "" diff --git a/qml/pages/ScanOTP.qml b/qml/pages/ScanOTP.qml index 2821d23..66b5577 100644 --- a/qml/pages/ScanOTP.qml +++ b/qml/pages/ScanOTP.qml @@ -37,6 +37,8 @@ import "../lib/urldecoder.js" as URL Page { id: scanPage + allowedOrientations: Orientation.All + property QtObject parentPage: null property bool scanning: false