diff options
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 | } | ||