aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/text
diff options
context:
space:
mode:
authorMaximilian Goldstein <max.goldstein@qt.io>2021-04-30 11:00:38 +0200
committerMaximilian Goldstein <max.goldstein@qt.io>2021-04-30 11:30:06 +0200
commit30f9affd163dbd615a8e842ca837bf31c7060b36 (patch)
tree7094e6e748cfa6241cf348714b9407a1a5b12aea /examples/quick/text
parentd21561ca2c547491fd99526f44579694ebeb457f (diff)
examples/quick/text/styledtext-layout.qml: Fix warnings
Change-Id: I7c0133d08f306dfb813d02e40f1987e278dd3f4d Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'examples/quick/text')
-rw-r--r--examples/quick/text/styledtext-layout.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/quick/text/styledtext-layout.qml b/examples/quick/text/styledtext-layout.qml
index b399b638dc..a06d01fbbd 100644
--- a/examples/quick/text/styledtext-layout.qml
+++ b/examples/quick/text/styledtext-layout.qml
@@ -76,7 +76,7 @@ Rectangle {
if (line.y + line.height >= height) {
line.y -= height - main.margin
- line.x = width / 2 + main.activeFocusmargin
+ line.x = width / 2 + main.margin
}
if (line.isLast) {
@@ -89,8 +89,8 @@ Rectangle {
Rectangle {
id: lastLineMarker
color: "#44cccccc"
- width: theEndText.width + margin
- height: theEndText.height + margin
+ width: theEndText.width + main.margin
+ height: theEndText.height + main.margin
Text {
id: theEndText