summaryrefslogtreecommitdiffstats
path: root/applications/kube-mail/package/contents/ui/example.qml
diff options
context:
space:
mode:
authorAaron Seigo <aseigo@kde.org>2015-12-31 19:03:58 +0100
committerAaron Seigo <aseigo@kde.org>2015-12-31 19:03:58 +0100
commitad39a0aa4852b09318a1a0e557dd7eaed12c4e95 (patch)
tree2b140b9ed6376c8f54566f5a73f281fdcdaeaa6e /applications/kube-mail/package/contents/ui/example.qml
parenta19884338f0cecb2c98215ddef54e3be09bf258b (diff)
downloadkube-ad39a0aa4852b09318a1a0e557dd7eaed12c4e95.tar.gz
kube-ad39a0aa4852b09318a1a0e557dd7eaed12c4e95.zip
kmail-quick -> kube-mail
Diffstat (limited to 'applications/kube-mail/package/contents/ui/example.qml')
-rw-r--r--applications/kube-mail/package/contents/ui/example.qml64
1 files changed, 64 insertions, 0 deletions
diff --git a/applications/kube-mail/package/contents/ui/example.qml b/applications/kube-mail/package/contents/ui/example.qml
new file mode 100644
index 00000000..a968bc72
--- /dev/null
+++ b/applications/kube-mail/package/contents/ui/example.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