summaryrefslogtreecommitdiffstats
path: root/components/package/contents/ui/MailViewer.qml
diff options
context:
space:
mode:
authorSandro Knauß <sknauss@kde.org>2016-10-12 14:23:20 +0200
committerSandro Knauß <sknauss@kde.org>2016-10-12 14:23:20 +0200
commitfb12fcddb68e96580028072daa595d82fb3dd0ab (patch)
tree3317e41572c8c403218d3863ad743ec1bad81ac2 /components/package/contents/ui/MailViewer.qml
parent7d6ec8866c90918be94364e52bbdd4f3e53da915 (diff)
downloadkube-fb12fcddb68e96580028072daa595d82fb3dd0ab.tar.gz
kube-fb12fcddb68e96580028072daa595d82fb3dd0ab.zip
get the correct size for NewMailViewer in qml
Diffstat (limited to 'components/package/contents/ui/MailViewer.qml')
-rw-r--r--components/package/contents/ui/MailViewer.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/components/package/contents/ui/MailViewer.qml b/components/package/contents/ui/MailViewer.qml
index 347f30de..02d84728 100644
--- a/components/package/contents/ui/MailViewer.qml
+++ b/components/package/contents/ui/MailViewer.qml
@@ -22,13 +22,14 @@ import QtQuick.Controls 1.4
22import QtQuick.Layouts 1.1 22import QtQuick.Layouts 1.1
23 23
24import org.kube.framework.domain 1.0 as KubeFramework 24import org.kube.framework.domain 1.0 as KubeFramework
25import org.kube.mailviewer 1.0 as MV
25 26
26Item { 27Item {
27 id: root 28 id: root
28 property variant message; 29 property variant message;
29 property string html; 30 property string html;
30 property bool enablePartTreeView : true; 31 property bool enablePartTreeView : true;
31 property int desiredHeight: enablePartTreeView ? topPartLoader.height + dummyApp.height + mailStructure.height + 50 : topPartLoader.height + dummyApp.height + 50; 32 property int desiredHeight: enablePartTreeView ? topPartLoader.height + newMailViewer.height + mailStructure.height + 50 : topPartLoader.height + newMailViewer.height + 50;
32 33
33 Rectangle { 34 Rectangle {
34 id: rootRectangle 35 id: rootRectangle
@@ -40,14 +41,13 @@ Item {
40 anchors.margins: 0 41 anchors.margins: 0
41 verticalScrollBarPolicy: Qt.ScrollBarAlwaysOff 42 verticalScrollBarPolicy: Qt.ScrollBarAlwaysOff
42 Column { 43 Column {
43 spacing:2 44 spacing: 2
44 Text { 45 Text {
45 text: "New Mailviewer:" 46 text: "New Mailviewer:"
46 color: "blue" 47 color: "blue"
47 } 48 }
48 DummyApp { 49 MV.MailViewer {
49 id: dummyApp 50 id: newMailViewer
50 height: 800
51 width: rootRectangle.width 51 width: rootRectangle.width
52 } 52 }
53 Text { 53 Text {