1
0
Fork 0
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:
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 // 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

View file

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

View file

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

View file

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

View file

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

View file

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