mirror of
https://github.com/seiichiro0185/sailotp.git
synced 2024-11-21 23:39:41 +00:00
Allow all pages to rotate
This commit is contained in:
parent
b9b665afa2
commit
168463cacb
6 changed files with 18 additions and 1 deletions
|
@ -33,6 +33,9 @@ import Sailfish.Silica 1.0
|
||||||
// Define the Layout of the About Page
|
// Define the Layout of the About Page
|
||||||
Page {
|
Page {
|
||||||
id: aboutPage
|
id: aboutPage
|
||||||
|
|
||||||
|
allowedOrientations: Orientation.All
|
||||||
|
|
||||||
SilicaFlickable {
|
SilicaFlickable {
|
||||||
id: flickable
|
id: flickable
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
|
@ -36,6 +36,8 @@ import "../lib/storage.js" as DB // Import the storage library for Config-Access
|
||||||
Dialog {
|
Dialog {
|
||||||
id: addOTP
|
id: addOTP
|
||||||
|
|
||||||
|
allowedOrientations: Orientation.All
|
||||||
|
|
||||||
// We get the Object of the parent page on call to refresh it after adding a new Entry
|
// We get the Object of the parent page on call to refresh it after adding a new Entry
|
||||||
property QtObject parentPage: null
|
property QtObject parentPage: null
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,8 @@ import "../lib/gibberish-aes.js" as Gibberish //Import AES encryption library
|
||||||
Dialog {
|
Dialog {
|
||||||
id: exportPage
|
id: exportPage
|
||||||
|
|
||||||
|
allowedOrientations: Orientation.All
|
||||||
|
|
||||||
// We get the Object of the parent page on call to refresh it after adding a new Entry
|
// We get the Object of the parent page on call to refresh it after adding a new Entry
|
||||||
property QtObject parentPage: null
|
property QtObject parentPage: null
|
||||||
property string mode: "import"
|
property string mode: "import"
|
||||||
|
|
|
@ -36,6 +36,8 @@ import "../lib/crypto.js" as OTP
|
||||||
Page {
|
Page {
|
||||||
id: mainPage
|
id: mainPage
|
||||||
|
|
||||||
|
allowedOrientations: Orientation.All
|
||||||
|
|
||||||
// This holds the time of the last update of the page as Unix Timestamp (in Milliseconds)
|
// This holds the time of the last update of the page as Unix Timestamp (in Milliseconds)
|
||||||
property double lastUpdated: 0
|
property double lastUpdated: 0
|
||||||
|
|
||||||
|
@ -119,16 +121,20 @@ Page {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
maximumValue: 29
|
maximumValue: 29
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.topMargin: 48
|
anchors.topMargin: 36 * Theme.pixelRatio
|
||||||
// Only show when there are enries
|
// Only show when there are enries
|
||||||
visible: appWin.listModel.count
|
visible: appWin.listModel.count
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SilicaListView {
|
SilicaListView {
|
||||||
id: otpList
|
id: otpList
|
||||||
|
|
||||||
header: PageHeader {
|
header: PageHeader {
|
||||||
title: "SailOTP"
|
title: "SailOTP"
|
||||||
}
|
}
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
model: appWin.listModel
|
model: appWin.listModel
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
|
@ -33,6 +33,8 @@ import Sailfish.Silica 1.0
|
||||||
Page {
|
Page {
|
||||||
id: qrpage
|
id: qrpage
|
||||||
|
|
||||||
|
allowedOrientations: Orientation.All
|
||||||
|
|
||||||
property string paramType: ""
|
property string paramType: ""
|
||||||
property string paramLabel: ""
|
property string paramLabel: ""
|
||||||
property string paramKey: ""
|
property string paramKey: ""
|
||||||
|
|
|
@ -37,6 +37,8 @@ import "../lib/urldecoder.js" as URL
|
||||||
Page {
|
Page {
|
||||||
id: scanPage
|
id: scanPage
|
||||||
|
|
||||||
|
allowedOrientations: Orientation.All
|
||||||
|
|
||||||
property QtObject parentPage: null
|
property QtObject parentPage: null
|
||||||
property bool scanning: false
|
property bool scanning: false
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue