[branding] Use Loader for sponsor message

This commit is contained in:
Artem Grinev 2023-12-01 19:37:27 +06:00
parent 50918f10b2
commit 1bd53bb8c3

View File

@ -73,10 +73,8 @@ Item {
} }
Row { Loader {
id: sponsoredBy source: "sponsor/SponsoredBy.qml"
spacing: 5
anchors { anchors {
bottom: parent.bottom bottom: parent.bottom
@ -84,36 +82,6 @@ Item {
margins: 10 margins: 10
} }
Text {
height: 30
font.family: "Montserrat"
color: "white"
text: qsTr("Brought to you by")
verticalAlignment: Text.AlignVCenter
}
Image {
source: "sponsor.svg"
onStatusChanged: {
if ((status == Image.Error))
sponsoredBy.visible = false;
}
sourceSize {
height: 30
}
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: {
Qt.openUrlExternally("./sponsor.html");
}
}
}
} }
} }