diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2018-07-12 10:29:54 +0200 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2018-07-12 10:32:13 +0200 |
commit | 7e3777cdde6f30bd930fe4ccd0d3918f8bb2066e (patch) | |
tree | a3a9920250b89268bb56986c6dabf64c83331429 /components | |
parent | eb72fac3ffa17bdc17ffe93b13a0fe2d4be41614 (diff) | |
download | kube-7e3777cdde6f30bd930fe4ccd0d3918f8bb2066e.tar.gz kube-7e3777cdde6f30bd930fe4ccd0d3918f8bb2066e.zip |
use template textarea instead of controls textarea so that we don't get strange borderaround our mail content depending on the native controls style
Diffstat (limited to 'components')
-rw-r--r-- | components/mailviewer/qml/TextContent.qml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/components/mailviewer/qml/TextContent.qml b/components/mailviewer/qml/TextContent.qml index 8c246e00..f0f0442d 100644 --- a/components/mailviewer/qml/TextContent.qml +++ b/components/mailviewer/qml/TextContent.qml | |||
@@ -18,6 +18,7 @@ | |||
18 | 18 | ||
19 | import QtQuick 2.7 | 19 | import QtQuick 2.7 |
20 | import QtQuick.Controls 2 | 20 | import QtQuick.Controls 2 |
21 | import QtQuick.Templates 2.0 as T | ||
21 | 22 | ||
22 | import org.kube.framework 1.0 as Kube | 23 | import org.kube.framework 1.0 as Kube |
23 | 24 | ||
@@ -37,7 +38,7 @@ Item { | |||
37 | textEdit.text = root.content | 38 | textEdit.text = root.content |
38 | } | 39 | } |
39 | 40 | ||
40 | TextArea { | 41 | T.TextArea { |
41 | id: textEdit | 42 | id: textEdit |
42 | 43 | ||
43 | anchors { | 44 | anchors { |
@@ -46,8 +47,10 @@ Item { | |||
46 | right: parent.right | 47 | right: parent.right |
47 | } | 48 | } |
48 | 49 | ||
49 | selectionColor: Kube.Colors.highlightColor | 50 | implicitWidth: contentWidth |
51 | implicitHeight: contentHeight | ||
50 | 52 | ||
53 | selectionColor: Kube.Colors.highlightColor | ||
51 | readOnly: true | 54 | readOnly: true |
52 | selectByMouse: true | 55 | selectByMouse: true |
53 | 56 | ||