Dekko
Loading...
Searching...
No Matches
NavMenuDekkoVisualModel.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: versionLayout.implicitHeight
25 ListItemLayout {
26 id: versionLayout
27 title.text: qsTr("Version")
28
29 Icon {
30 height: units.gu(3)
31 width: height
32 name: "info"
33 SlotsLayout.position: SlotsLayout.Leading
34 }
35 ProgressionSlot{}
36 }
37 onClicked: {
38 PopupActions.queueDialog(PopupKeys.popupMainWindow, Qt.resolvedUrl("../dialogs/VersionDialog.qml"), {})
39 }
40 }
41 ListItem {
42 height: licenseLayout.implicitHeight
43 ListItemLayout {
44 id: licenseLayout
45 title.text: qsTr("Licenses")
46
47 Icon {
48 height: units.gu(3)
49 width: height
50 name: "text-x-generic-symbolic"
51 SlotsLayout.position: SlotsLayout.Leading
52 }
53 ProgressionSlot{}
54 }
55 onClicked: {
56 ViewActions.pushToStageArea(ViewKeys.messageListStack, Qt.resolvedUrl("../LicensesPage.qml"), {})
57 }
58 }
59 ListItem {
60 height: contributorLayout.implicitHeight
61 ListItemLayout {
62 id: contributorLayout
63 title.text: qsTr("Contributors")
64
65 Icon {
66 height: units.gu(3)
67 width: height
68 name: "contact"
69 SlotsLayout.position: SlotsLayout.Leading
70 }
71 ProgressionSlot{}
72 }
73 onClicked: {
74 ViewActions.pushToStageArea(ViewKeys.messageListStack, Qt.resolvedUrl("../ContributorsPage.qml"), {})
75 }
76 }
77}
78