diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-02-28 18:09:48 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-02-28 18:09:48 +0100 |
commit | 31fc464ee7a2f6a34bbfec77a551721a6b334b5f (patch) | |
tree | cfd79edeb6eb1cc2636d0ef9af6f47fe82358f1f /components/package/contents/ui/ContentView.qml | |
parent | bd4caf4e8d3b525848e542f367c535c5b6a0a101 (diff) | |
download | kube-31fc464ee7a2f6a34bbfec77a551721a6b334b5f.tar.gz kube-31fc464ee7a2f6a34bbfec77a551721a6b334b5f.zip |
Removed the old mailviewer.
That way I also don't try to edit outdated invisible components to fix
bugs...
Diffstat (limited to 'components/package/contents/ui/ContentView.qml')
-rw-r--r-- | components/package/contents/ui/ContentView.qml | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/components/package/contents/ui/ContentView.qml b/components/package/contents/ui/ContentView.qml deleted file mode 100644 index 099d5c5d..00000000 --- a/components/package/contents/ui/ContentView.qml +++ /dev/null | |||
@@ -1,60 +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 2 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 along | ||
15 | with this program; if not, write to the Free Software Foundation, Inc., | ||
16 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
17 | */ | ||
18 | |||
19 | import QtQuick 2.4 | ||
20 | import QtQuick.Controls 1.3 | ||
21 | |||
22 | Item { | ||
23 | id: root | ||
24 | property int nestingLevel; | ||
25 | property bool isHtml; | ||
26 | property string content; | ||
27 | property string contentType; | ||
28 | property int contentWidth: contentLoader.item.contentWidth | ||
29 | property int contentHeight: contentLoader.item.contentHeight | ||
30 | Rectangle { | ||
31 | id: contentRect | ||
32 | |||
33 | //Only for development | ||
34 | // border.width: 1 | ||
35 | // border.color: "black" | ||
36 | // radius: 5 | ||
37 | // anchors.leftMargin: nestingLevel * 5 | ||
38 | anchors.fill: parent | ||
39 | |||
40 | Loader { | ||
41 | id: contentLoader | ||
42 | property string content: root.content | ||
43 | anchors.fill: parent | ||
44 | sourceComponent: isHtml ? htmlComponent : textComponent | ||
45 | } | ||
46 | |||
47 | Component { | ||
48 | id: textComponent | ||
49 | TextView { | ||
50 | content: root.content | ||
51 | } | ||
52 | } | ||
53 | Component { | ||
54 | id: htmlComponent | ||
55 | WebView { | ||
56 | content: root.content | ||
57 | } | ||
58 | } | ||
59 | } | ||
60 | } | ||