mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 17:56:43 +02:00
Merge pull request #14423 from vladest/qml_warning_fix
Fix QML achoring warnings on Layouts
This commit is contained in:
commit
1f29423a58
2 changed files with 5 additions and 3 deletions
|
@ -23,6 +23,8 @@ Item {
|
||||||
width: root.pane.width
|
width: root.pane.width
|
||||||
property bool failAfterSignUp: false
|
property bool failAfterSignUp: false
|
||||||
|
|
||||||
|
onWidthChanged: d.resize();
|
||||||
|
|
||||||
function login() {
|
function login() {
|
||||||
flavorText.visible = false
|
flavorText.visible = false
|
||||||
mainTextContainer.visible = false
|
mainTextContainer.visible = false
|
||||||
|
@ -127,7 +129,7 @@ Item {
|
||||||
Column {
|
Column {
|
||||||
id: form
|
id: form
|
||||||
width: parent.width
|
width: parent.width
|
||||||
onHeightChanged: d.resize(); onWidthChanged: d.resize();
|
onHeightChanged: d.resize();
|
||||||
|
|
||||||
anchors {
|
anchors {
|
||||||
top: mainTextContainer.bottom
|
top: mainTextContainer.bottom
|
||||||
|
|
|
@ -61,7 +61,7 @@ Item {
|
||||||
RalewaySemiBold {
|
RalewaySemiBold {
|
||||||
text: Account.loggedIn ? qsTr("Log out") : qsTr("Log in")
|
text: Account.loggedIn ? qsTr("Log out") : qsTr("Log in")
|
||||||
horizontalAlignment: Text.AlignRight
|
horizontalAlignment: Text.AlignRight
|
||||||
anchors.right: parent.right
|
Layout.alignment: Qt.AlignRight
|
||||||
font.pixelSize: 20
|
font.pixelSize: 20
|
||||||
color: "#afafaf"
|
color: "#afafaf"
|
||||||
}
|
}
|
||||||
|
@ -71,7 +71,7 @@ Item {
|
||||||
height: Account.loggedIn ? parent.height/2 - parent.spacing/2 : 0
|
height: Account.loggedIn ? parent.height/2 - parent.spacing/2 : 0
|
||||||
text: Account.loggedIn ? "[" + tabletRoot.usernameShort + "]" : ""
|
text: Account.loggedIn ? "[" + tabletRoot.usernameShort + "]" : ""
|
||||||
horizontalAlignment: Text.AlignRight
|
horizontalAlignment: Text.AlignRight
|
||||||
anchors.right: parent.right
|
Layout.alignment: Qt.AlignRight
|
||||||
font.pixelSize: 20
|
font.pixelSize: 20
|
||||||
color: "#afafaf"
|
color: "#afafaf"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue