diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2014-09-29 16:50:57 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2014-09-29 19:55:20 +0200 |
commit | 653149a7cd455f2619af2bd54280eebecef87ea4 (patch) | |
tree | 7defbfe9def482622fc422d8515f2894ececa7c4 | |
parent | d00dd05de4ea18f6aba30c4d4e23531769961b8c (diff) |
Allow for overriding the text format of a slide
Sometimes it's convenient to use rich-text formatting
inside content
Change-Id: Ie0296521f98b07a2871b478aefd8f17c0c8d93d2
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
-rw-r--r-- | src/Slide.qml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Slide.qml b/src/Slide.qml index c440cfb..e46b568 100644 --- a/src/Slide.qml +++ b/src/Slide.qml @@ -92,6 +92,7 @@ Item { property color titleColor: parent.titleColor; property color textColor: parent.textColor; property string fontFamily: parent.fontFamily; + property int textFormat: Text.PlainText visible: false @@ -187,7 +188,7 @@ Item { width: slide.contentWidth - parent.x - dot.width - space.width font.pixelSize: baseFontSize * row.indentFactor text: content[index] - textFormat: Text.PlainText + textFormat: slide.textFormat wrapMode: Text.WordWrap color: slide.textColor horizontalAlignment: Text.AlignLeft |