From df326b81ddcafb45467c9e1e434c09e8b12a6baa Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 13 Jul 2016 01:02:21 +0200 Subject: Prepared WebEngine port and resize according to content --- components/package/contents/ui/TextView.qml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 components/package/contents/ui/TextView.qml (limited to 'components/package/contents/ui/TextView.qml') diff --git a/components/package/contents/ui/TextView.qml b/components/package/contents/ui/TextView.qml new file mode 100644 index 00000000..7c2f3153 --- /dev/null +++ b/components/package/contents/ui/TextView.qml @@ -0,0 +1,15 @@ +import QtQuick 2.4 +import QtQuick.Controls 1.3 + +Item { + id: root + property string content; + property int contentWidth: 0; + property int contentHeight: textView.contentHeight; + Text { + id: textView + wrapMode: Text.WordWrap + anchors.fill: parent + text: content + } +} -- cgit v1.2.3