Add possibility for additional links for the imrint
This commit is contained in:
parent
9ae9d88e52
commit
ec463c591f
@ -29,4 +29,7 @@ Item {
|
||||
|
||||
property var mainMenuLinks: null
|
||||
property bool closedSource: false
|
||||
|
||||
property var additionalImrintLinks: null
|
||||
property var additionalLicenses: null
|
||||
}
|
||||
|
||||
@ -124,6 +124,22 @@ Item {
|
||||
ColumnLayout {
|
||||
Layout.fillWidth: true
|
||||
|
||||
Repeater {
|
||||
visible: Configuration.additionalImrintLinks !== null && Configuration.additionalImrintLinks.count > 0
|
||||
model: Configuration.additionalImrintLinks
|
||||
delegate:NymeaSwipeDelegate {
|
||||
Layout.fillWidth: true
|
||||
iconName: "../images/stock_website.svg"
|
||||
text: model.text
|
||||
subText: model.subText
|
||||
prominentSubText: false
|
||||
wrapTexts: false
|
||||
onClicked: {
|
||||
Qt.openUrlExternally(model.url)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
NymeaSwipeDelegate {
|
||||
Layout.fillWidth: true
|
||||
iconName: "../images/stock_website.svg"
|
||||
|
||||
Reference in New Issue
Block a user