summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-08-03 09:55:45 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-08-03 09:55:45 +0200
commit08d2fbd8270efd50a1ebb2567f8b1d74e7269232 (patch)
tree796d84ed0fafe4f12347018bc949c4cda6966398 /views
parent581b5a7f16a1c399958742a3b103f47ef9518662 (diff)
downloadkube-08d2fbd8270efd50a1ebb2567f8b1d74e7269232.tar.gz
kube-08d2fbd8270efd50a1ebb2567f8b1d74e7269232.zip
People main.qml
Diffstat (limited to 'views')
-rw-r--r--views/people/main.qml66
1 files changed, 66 insertions, 0 deletions
diff --git a/views/people/main.qml b/views/people/main.qml
new file mode 100644
index 00000000..0ff35db3
--- /dev/null
+++ b/views/people/main.qml
@@ -0,0 +1,66 @@
1/*
2 * Copyright (C) 2018 Christian Mollekopf, <mollekopf@kolabsys.com>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18
19import QtQuick 2.7
20import QtQuick.Controls 2.0
21import QtQuick.Window 2.0
22
23import org.kube.framework 1.0 as Kube
24import org.kube.test 1.0
25import "qml"
26
27ApplicationWindow {
28 id: app
29 height: Screen.desktopAvailableHeight * 0.8
30 width: Screen.desktopAvailableWidth * 0.8
31
32 Component.onCompleted: {
33 var initialState = {
34 accounts: [{
35 id: "account1",
36 name: "Test Account"
37 }],
38 identities: [{
39 account: "account1",
40 name: "Test Identity",
41 address: "identity@example.org"
42 }],
43 resources: [{
44 id: "carddavresource",
45 account: "account1",
46 type: "carddav",
47 }],
48 addressbooks: [{
49 id: "addressbook1",
50 resource: "carddavresource",
51 name: "Default Addressbook",
52 contacts: [{
53 resource: "carddavresource",
54 uid: "uid1",
55 givenname: "John",
56 familyname: "Doe"
57 }],
58 }],
59 }
60 TestStore.setup(initialState)
61 }
62
63 View {
64 anchors.fill: parent
65 }
66}