File: RequestAccountPage.qml

package info (click to toggle)
lomiri-cloudsync-app 0.8.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,560 kB
  • sloc: cpp: 1,053; python: 67; javascript: 25; makefile: 21; sh: 9
file content (48 lines) | stat: -rw-r--r-- 1,342 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import QtQuick 2.4
import Lomiri.Components 1.3
import "../components"



Page {
    id: requestAccountsPage


    header: PageHeader {
        id: header
        title: i18n.tr("Add Online Account")

    }

    Item {
        anchors{left:parent.left; right:parent.right; top:header.bottom; bottom:parent.bottom; bottomMargin:units.gu(2)}

        Button{
            id: addOwnCloudButton
            text: i18n.tr("Add NextCloud account")
            anchors {
                top: parent.top; left: parent.left; right: parent.right; margins: units.gu(2)
            }

            onClicked: {
                console.log("RequestAccountPage :: Add NextCloud account: clicked")
                apl.addPageToNextColumn(apl.primaryPage, Qt.resolvedUrl("AccountsPage.qml"), {requestAccount: "nextcloud"})
            }
        }

        Button{
            id: addNextCloudButton
            text: i18n.tr("Add OwnCloud account")
            anchors {
                top: addOwnCloudButton.bottom; left: parent.left; right: parent.right; margins: units.gu(2)
            }

            onClicked: {
                console.log("RequestAccountPage :: Add OwnCloud account: clicked")
                apl.addPageToNextColumn(apl.primaryPage, Qt.resolvedUrl("AccountsPage.qml"), {requestAccount: "owncloud"})
            }
        }

    }

}