summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2014-09-29 16:50:57 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2014-09-29 19:55:20 +0200
commit653149a7cd455f2619af2bd54280eebecef87ea4 (patch)
tree7defbfe9def482622fc422d8515f2894ececa7c4
parentd00dd05de4ea18f6aba30c4d4e23531769961b8c (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.qml3
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