mirror of
https://github.com/seiichiro0185/sailotp.git
synced 2024-12-22 03:32:30 +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
|
||||
Page {
|
||||
id: aboutPage
|
||||
|
||||
allowedOrientations: Orientation.All
|
||||
|
||||
SilicaFlickable {
|
||||
id: flickable
|
||||
anchors.fill: parent
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -33,6 +33,8 @@ import Sailfish.Silica 1.0
|
|||
Page {
|
||||
id: qrpage
|
||||
|
||||
allowedOrientations: Orientation.All
|
||||
|
||||
property string paramType: ""
|
||||
property string paramLabel: ""
|
||||
property string paramKey: ""
|
||||
|
|
|
@ -37,6 +37,8 @@ import "../lib/urldecoder.js" as URL
|
|||
Page {
|
||||
id: scanPage
|
||||
|
||||
allowedOrientations: Orientation.All
|
||||
|
||||
property QtObject parentPage: null
|
||||
property bool scanning: false
|
||||
|
||||
|
|
Loading…
Reference in a new issue