1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2024-10-31 23:25:18 +00:00
harbour-sailfin/sailfish/qml/components/ContributorsSection.qml
Chris Josten 13786f01c9 sailfish: add contributors list and update info page
- Add list of contributors
- Add link to GitHub repository
- Update copyright year
2024-01-02 16:44:07 +01:00

49 lines
1.1 KiB
QML

import QtQuick 2.6
import Sailfish.Silica 1.0
Column {
property string headerText
// The contributors model
property var contributors
width: parent.width
SectionHeader {
text: headerText
}
ColumnView {
model: contributors
itemHeight: Theme.itemSizeLarge
delegate: ListItem {
width: parent.width
contentHeight: Theme.itemSizeLarge
onClicked: {
if (model.url) {
Qt.openUrlExternally(model.url)
}
}
Column {
anchors {
verticalCenter: parent.verticalCenter
left: parent.left
right: parent.right
leftMargin: Theme.horizontalPageMargin
rightMargin: Theme.horizontalPageMargin
}
Label {
text: model.name
}
Label {
text: model.role
color: highlighted ? Theme.secondaryHighlightColor : Theme.secondaryColor
}
}
}
}
}