[branding] Use Loader for sponsor message
This commit is contained in:
parent
50918f10b2
commit
1bd53bb8c3
@ -73,10 +73,8 @@ Item {
|
||||
|
||||
}
|
||||
|
||||
Row {
|
||||
id: sponsoredBy
|
||||
|
||||
spacing: 5
|
||||
Loader {
|
||||
source: "sponsor/SponsoredBy.qml"
|
||||
|
||||
anchors {
|
||||
bottom: parent.bottom
|
||||
@ -84,36 +82,6 @@ Item {
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user