diff options
-rw-r--r-- | applications/examples/SingleMail.qml | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/applications/examples/SingleMail.qml b/applications/examples/SingleMail.qml deleted file mode 100644 index a307de79..00000000 --- a/applications/examples/SingleMail.qml +++ /dev/null | |||
@@ -1,54 +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.akonadi2.mail 1.0 | ||
23 | |||
24 | Item { | ||
25 | id: root | ||
26 | |||
27 | SingleMail { | ||
28 | id: singleMail | ||
29 | |||
30 | akonadiId: "test" | ||
31 | } | ||
32 | |||
33 | ScrollView { | ||
34 | anchors.fill: parent | ||
35 | |||
36 | ColumnLayout { | ||
37 | Button { | ||
38 | text: singleMail.isUnread ? "mark unread" : "mark read" | ||
39 | onClicked: singleMail.markMailUnread(!singleMail.isUnread) | ||
40 | } | ||
41 | Button { | ||
42 | text: singleMail.isImportant ? "important" : "not important" | ||
43 | onClicked: singleMail.markMailImportant(!singleMail.isImportant) | ||
44 | } | ||
45 | Button { | ||
46 | text: "delete" | ||
47 | onClicked: singleMail.deleteMail() | ||
48 | } | ||
49 | Label { | ||
50 | text: singleMail.message | ||
51 | } | ||
52 | } | ||
53 | } | ||
54 | } \ No newline at end of file | ||