summaryrefslogtreecommitdiffstats
path: root/applications/mail-mobile/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'applications/mail-mobile/main.qml')
-rw-r--r--applications/mail-mobile/main.qml81
1 files changed, 0 insertions, 81 deletions
diff --git a/applications/mail-mobile/main.qml b/applications/mail-mobile/main.qml
deleted file mode 100644
index d3db3b7f..00000000
--- a/applications/mail-mobile/main.qml
+++ /dev/null
@@ -1,81 +0,0 @@
1/*
2 * Copyright (C) 2016 Michael Bohlender <michael.bohlender@kdemail.net>
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 3 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
15 * along with this program; if not, see <http://www.gnu.org/licenses/>.
16 */
17
18import QtQuick 2.4
19import QtQuick.Controls 1.4 as Controls
20import QtQuick.Layouts 1.2
21
22import org.kde.kirigami 1.0 as Kirigami
23
24Kirigami.ApplicationWindow {
25 id: app
26
27 //FIXME remove fixed pixel hight
28 //for now just convinience during testing
29 width: 1080 / 2.7
30 height: (1920 - 40)/ 2.7
31
32 visible: true
33
34 globalDrawer: Kirigami.GlobalDrawer {
35 title: "Kube Mail"
36 titleIcon: "kmail"
37
38 actions: [
39 Kirigami.Action {
40 text: "Unread"
41 onTriggered: {
42
43
44 pageStack.initialPage = Qt.resolvedUrl("MailListPage.qml");
45 }
46 },
47 Kirigami.Action {
48 text: "Imporant"
49 },
50 Kirigami.Action {
51 text: "Drafts"
52 },
53 Kirigami.Action {
54 text: "All Mail"
55 }
56 ]
57
58 ListView {
59 id: listView
60
61 anchors.fill: parent
62
63 model: FolderListModel {}
64
65 delegate: Kirigami.BasicListItem {
66
67 label: model.name
68
69 enabled: true
70 }
71 }
72 }
73
74 contextDrawer: Kirigami.ContextDrawer {
75 id: contextDrawer
76 }
77
78 pageStack.initialPage: MailListPage {
79 title: "Inbox"
80 }
81}