Warning, /pim/kube/views/people/main.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * Copyright (C) 2018 Christian Mollekopf, <mollekopf@kolabsys.com> 0003 * 0004 * This program is free software; you can redistribute it and/or modify 0005 * it under the terms of the GNU General Public License as published by 0006 * the Free Software Foundation; either version 2 of the License, or 0007 * (at your option) any later version. 0008 * 0009 * This program is distributed in the hope that it will be useful, 0010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0012 * GNU General Public License for more details. 0013 * 0014 * You should have received a copy of the GNU General Public License along 0015 * with this program; if not, write to the Free Software Foundation, Inc., 0016 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 0017 */ 0018 0019 import QtQuick 2.7 0020 import QtQuick.Controls 2.0 0021 import QtQuick.Window 2.0 0022 0023 import org.kube.framework 1.0 as Kube 0024 import org.kube.test 1.0 0025 import "qml" 0026 0027 ApplicationWindow { 0028 id: app 0029 height: Screen.desktopAvailableHeight * 0.8 0030 width: Screen.desktopAvailableWidth * 0.8 0031 0032 Component.onCompleted: { 0033 var initialState = { 0034 accounts: [{ 0035 id: "account1", 0036 name: "Test Account" 0037 }], 0038 identities: [{ 0039 account: "account1", 0040 name: "Test Identity", 0041 address: "identity@example.org" 0042 }], 0043 resources: [{ 0044 id: "carddavresource", 0045 account: "account1", 0046 type: "carddav", 0047 }], 0048 addressbooks: [{ 0049 id: "addressbook0", 0050 resource: "carddavresource", 0051 name: "Addressbook(wrong)" 0052 }, 0053 { 0054 id: "addressbook1", 0055 resource: "carddavresource", 0056 name: "Default Addressbook", 0057 contacts: [{ 0058 resource: "carddavresource", 0059 uid: "uid1", 0060 givenname: "John", 0061 familyname: "Doe", 0062 email: ["doe@example.org"], 0063 }], 0064 }], 0065 } 0066 TestStore.setup(initialState) 0067 } 0068 0069 View { 0070 anchors.fill: parent 0071 } 0072 }