From 7e3777cdde6f30bd930fe4ccd0d3918f8bb2066e Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 12 Jul 2018 10:29:54 +0200 Subject: use template textarea instead of controls textarea so that we don't get strange borderaround our mail content depending on the native controls style --- components/mailviewer/qml/TextContent.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'components/mailviewer/qml/TextContent.qml') 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 @@ import QtQuick 2.7 import QtQuick.Controls 2 +import QtQuick.Templates 2.0 as T import org.kube.framework 1.0 as Kube @@ -37,7 +38,7 @@ Item { textEdit.text = root.content } - TextArea { + T.TextArea { id: textEdit anchors { @@ -46,8 +47,10 @@ Item { right: parent.right } - selectionColor: Kube.Colors.highlightColor + implicitWidth: contentWidth + implicitHeight: contentHeight + selectionColor: Kube.Colors.highlightColor readOnly: true selectByMouse: true -- cgit v1.2.3