examples/quick/text/styledtext-layout.qml: Fix warnings

Change-Id: I7c0133d08f306dfb813d02e40f1987e278dd3f4d
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
Maximilian Goldstein 2021-04-30 11:00:38 +02:00
parent d21561ca2c
commit 30f9affd16
1 changed files with 3 additions and 3 deletions

View File

@ -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