examples/quick/text/styledtext-layout.qml: Fix warnings
Change-Id: I7c0133d08f306dfb813d02e40f1987e278dd3f4d Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
parent
d21561ca2c
commit
30f9affd16
|
@ -76,7 +76,7 @@ Rectangle {
|
||||||
|
|
||||||
if (line.y + line.height >= height) {
|
if (line.y + line.height >= height) {
|
||||||
line.y -= height - main.margin
|
line.y -= height - main.margin
|
||||||
line.x = width / 2 + main.activeFocusmargin
|
line.x = width / 2 + main.margin
|
||||||
}
|
}
|
||||||
|
|
||||||
if (line.isLast) {
|
if (line.isLast) {
|
||||||
|
@ -89,8 +89,8 @@ Rectangle {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: lastLineMarker
|
id: lastLineMarker
|
||||||
color: "#44cccccc"
|
color: "#44cccccc"
|
||||||
width: theEndText.width + margin
|
width: theEndText.width + main.margin
|
||||||
height: theEndText.height + margin
|
height: theEndText.height + main.margin
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: theEndText
|
id: theEndText
|
||||||
|
|
Loading…
Reference in New Issue