Dekko
Loading...
Searching...
No Matches
NavMenuContactsModel.qml
1/* Copyright (C) 2016 - 2017 Dan Chapman <dpniel@ubuntu.com>
2
3 This file is part of Dekko email client for Ubuntu devices
4
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License as
7 published by the Free Software Foundation; either version 2 of
8 the License or (at your option) version 3
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18import QtQuick 2.4
19import Lomiri.Components 1.3
20import Dekko.Mail.API 1.0
22VisualItemModel {
23 ListItem {
24 height: abookLayout.implicitHeight
25 ListItemLayout {
26 id: abookLayout
27 title.text: qsTr("Addressbook")
28
29 Icon {
30 height: units.gu(3)
31 width: height
32 name: "address-book-app-symbolic"
33 SlotsLayout.position: SlotsLayout.Leading
34 }
35 ProgressionSlot{}
36 }
37 onClicked: ViewActions.openAddressBook()
38 }
39 ListItem {
40 height: recentLayout.implicitHeight
41 ListItemLayout {
42 id: recentLayout
43 title.text: qsTr("Recent contacts")
44
45 Icon {
46 height: units.gu(3)
47 width: height
48 name: "contact"
49 SlotsLayout.position: SlotsLayout.Leading
50 }
51 ProgressionSlot{}
52 }
53 }
54 ListItem {
55 height: importLayout.implicitHeight
56 ListItemLayout {
57 id: importLayout
58 title.text: qsTr("Import contacts")
59
60 Icon {
61 height: units.gu(3)
62 width: height
63 name: "import"
64 SlotsLayout.position: SlotsLayout.Leading
65 }
66 ProgressionSlot{}
67 }
68 }
69}
70