aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/text/styledtext-layout.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/text/styledtext-layout.qml')
-rw-r--r--examples/quick/text/styledtext-layout.qml12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/quick/text/styledtext-layout.qml b/examples/quick/text/styledtext-layout.qml
index 4f63d3ea90..1f99729488 100644
--- a/examples/quick/text/styledtext-layout.qml
+++ b/examples/quick/text/styledtext-layout.qml
@@ -5,11 +5,12 @@ import QtQuick
Rectangle {
id: main
- width: 320; height: 480
- focus: true
- property real offset: 0
- property real margin: 8
+ readonly property real margin: 8
+
+ width: 320
+ height: 480
+ focus: true
Text {
id: myText
@@ -47,11 +48,10 @@ Rectangle {
Text {
id: theEndText
- text: "THE\nEND"
+ text: qsTr("THE\nEND")
anchors.centerIn: parent
font.pixelSize: myText.font.pixelSize / 2
}
}
}
-
}