summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2012-08-20 11:59:11 +0200
committerGunnar Sletta <gunnar.sletta@nokia.com>2012-08-20 11:59:11 +0200
commit52724f4b6300d42d8f7896adccf28411a7655b6d (patch)
tree9532cdf25d0d869ca8a8f99b4f521b8d4a582a9d
parent96dbfb9d9d239d9fe957d8b8a889a708e83014d1 (diff)
Make it possiblet to set global font
-rw-r--r--src/Slide.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Slide.qml b/src/Slide.qml
index b970211..3f45bd8 100644
--- a/src/Slide.qml
+++ b/src/Slide.qml
@@ -64,6 +64,7 @@ Item {
property real masterHeight: parent.height
property color slideTextColor: parent.textColor != undefined ? parent.textColor : "black"
+ property string slideFontFamily: parent.fontFamily != undefined ? parent.fontFamily : "Helvetica"
visible: false
@@ -75,6 +76,7 @@ Item {
anchors.bottom: parent.top
anchors.bottomMargin: parent.fontSize * 1.5
font.bold: true;
+ font.family: parent.slideFontFamily
color: slideTextColor
horizontalAlignment: Text.Center
z: 1
@@ -88,6 +90,7 @@ Item {
text: centeredText
horizontalAlignment: Text.Center
font.pixelSize: baseFontSize
+ font.family: parent.slideFontFamily
color: slideTextColor
wrapMode: Text.Wrap
}
@@ -137,6 +140,7 @@ Item {
wrapMode: Text.WordWrap
color: slide.slideTextColor
horizontalAlignment: Text.AlignLeft
+ font.family: parent.slideFontFamily
}
}
}