diff options
Diffstat (limited to 'applications/kube-mail/package/contents/ui/example.qml')
-rw-r--r-- | applications/kube-mail/package/contents/ui/example.qml | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/applications/kube-mail/package/contents/ui/example.qml b/applications/kube-mail/package/contents/ui/example.qml deleted file mode 100644 index e0c0a077..00000000 --- a/applications/kube-mail/package/contents/ui/example.qml +++ /dev/null | |||
@@ -1,64 +0,0 @@ | |||
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 | |||
18 | import QtQuick 2.4 | ||
19 | import QtQuick.Controls 1.3 | ||
20 | import QtQuick.Layouts 1.1 | ||
21 | |||
22 | import org.kde.sink.mail 1.0 | ||
23 | |||
24 | Item { | ||
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 | ||