1
0
Fork 0
mirror of https://github.com/seiichiro0185/sailotp.git synced 2024-11-25 00:29:42 +00:00

Allow all pages to rotate

This commit is contained in:
seiichiro 2015-09-26 10:51:17 +02:00
parent b9b665afa2
commit 168463cacb
6 changed files with 18 additions and 1 deletions

View file

@ -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

View file

@ -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

View file

@ -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"

View file

@ -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

View file

@ -33,6 +33,8 @@ import Sailfish.Silica 1.0
Page {
id: qrpage
allowedOrientations: Orientation.All
property string paramType: ""
property string paramLabel: ""
property string paramKey: ""

View file

@ -37,6 +37,8 @@ import "../lib/urldecoder.js" as URL
Page {
id: scanPage
allowedOrientations: Orientation.All
property QtObject parentPage: null
property bool scanning: false