diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-13 01:02:21 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-14 01:23:10 +0200 |
commit | df326b81ddcafb45467c9e1e434c09e8b12a6baa (patch) | |
tree | 3b005fa68a3504f0b7454a4e1a8ef56c0dd7b9dd /components/package/contents/ui/TextView.qml | |
parent | 1213815b42e94f41817b79fc9e311742a330d9ae (diff) | |
download | kube-df326b81ddcafb45467c9e1e434c09e8b12a6baa.tar.gz kube-df326b81ddcafb45467c9e1e434c09e8b12a6baa.zip |
Prepared WebEngine port and resize according to content
Diffstat (limited to 'components/package/contents/ui/TextView.qml')
-rw-r--r-- | components/package/contents/ui/TextView.qml | 15 |
1 files changed, 15 insertions, 0 deletions
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 @@ | |||
1 | import QtQuick 2.4 | ||
2 | import QtQuick.Controls 1.3 | ||
3 | |||
4 | Item { | ||
5 | id: root | ||
6 | property string content; | ||
7 | property int contentWidth: 0; | ||
8 | property int contentHeight: textView.contentHeight; | ||
9 | Text { | ||
10 | id: textView | ||
11 | wrapMode: Text.WordWrap | ||
12 | anchors.fill: parent | ||
13 | text: content | ||
14 | } | ||
15 | } | ||