summaryrefslogtreecommitdiffstats
path: root/applications/kmail-quick/package/contents/ui
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2015-10-19 16:13:34 +0200
committerMichael Bohlender <michael.bohlender@kdemail.net>2015-10-19 16:13:34 +0200
commitc5e7ce7a3f9a73d20ae6ee0670bf57fc9a504331 (patch)
treeed686e2275aadbc8f83503e5c1b5654aaacd762f /applications/kmail-quick/package/contents/ui
parent3b455f3b2e557fa4f1ca69c042309612acf7fe59 (diff)
downloadkube-c5e7ce7a3f9a73d20ae6ee0670bf57fc9a504331.tar.gz
kube-c5e7ce7a3f9a73d20ae6ee0670bf57fc9a504331.zip
install kmail-quick ui as package
Diffstat (limited to 'applications/kmail-quick/package/contents/ui')
-rw-r--r--applications/kmail-quick/package/contents/ui/MailListView.qml64
-rw-r--r--applications/kmail-quick/package/contents/ui/main.qml31
2 files changed, 95 insertions, 0 deletions
diff --git a/applications/kmail-quick/package/contents/ui/MailListView.qml b/applications/kmail-quick/package/contents/ui/MailListView.qml
new file mode 100644
index 00000000..a968bc72
--- /dev/null
+++ b/applications/kmail-quick/package/contents/ui/MailListView.qml
@@ -0,0 +1,64 @@
1/*
2 * Copyright (C) 2015 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.3
20import QtQuick.Layouts 1.1
21
22import org.kde.akonadi2.mail 1.0
23
24Item {
25 id: root
26
27 MailList {
28 id: mailList
29
30 query: "Some Query"
31
32 }
33
34 Button {
35 id: button
36
37 anchors {
38 top: parent.top
39 right: parent.right
40 left: parent.left
41 }
42
43 text: "add mail"
44
45 onClicked: mailList.addMail("test test test");
46 }
47
48 ListView {
49
50 anchors {
51 top: button.bottom
52 left: parent.left
53 right: parent.right
54 bottom: parent.bottom
55 }
56
57 model: mailList.model
58
59 delegate: Label {
60
61 text: model.subject
62 }
63 }
64} \ No newline at end of file
diff --git a/applications/kmail-quick/package/contents/ui/main.qml b/applications/kmail-quick/package/contents/ui/main.qml
new file mode 100644
index 00000000..69c2f094
--- /dev/null
+++ b/applications/kmail-quick/package/contents/ui/main.qml
@@ -0,0 +1,31 @@
1/*
2 * Copyright (C) 2015 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.3
20import QtQuick.Layouts 1.1
21
22ApplicationWindow {
23 id: app
24
25 //FIXME remove fixed pixel hight
26 //for now just convinience during testing
27 height: 1080 * 0.7
28 width: 1920 * 0.7
29
30 visible: true
31} \ No newline at end of file