summaryrefslogtreecommitdiffstats
path: root/Qt/labs/presentation/Slide.qml
diff options
context:
space:
mode:
Diffstat (limited to 'Qt/labs/presentation/Slide.qml')
-rw-r--r--Qt/labs/presentation/Slide.qml6
1 files changed, 4 insertions, 2 deletions
diff --git a/Qt/labs/presentation/Slide.qml b/Qt/labs/presentation/Slide.qml
index 0c2dd9e..738e00e 100644
--- a/Qt/labs/presentation/Slide.qml
+++ b/Qt/labs/presentation/Slide.qml
@@ -16,6 +16,8 @@ Item {
property real titleFontSize: fontSize * 1.2 * fontScale
property real bulletSpacing: 1
+ property real contentWidth: width
+
// Define the slide to be the "content area"
x: parent.width * 0.05
y: parent.height * 0.2
@@ -67,7 +69,7 @@ Item {
property real indentFactor: (10 - row.indentLevel * 2) / 10;
height: text.height + (nextIndentLevel == 0 ? 1 : 0.3) * slide.baseFontSize * slide.bulletSpacing
- x: 50 * indentLevel
+ x: slide.baseFontSize * indentLevel
Rectangle {
id: dot
@@ -89,7 +91,7 @@ Item {
Text {
id: text
- width: slide.width
+ width: slide.contentWidth - parent.x - dot.width - space.width
font.pixelSize: baseFontSize * row.indentFactor
text: content[index]
textFormat: Text.PlainText