mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-05 18:22:46 +00:00
sailfish: add contributors list and update info page
- Add list of contributors - Add link to GitHub repository - Update copyright year
This commit is contained in:
parent
5cd0b10b73
commit
13786f01c9
6 changed files with 87 additions and 9 deletions
48
sailfish/qml/components/ContributorsSection.qml
Normal file
48
sailfish/qml/components/ContributorsSection.qml
Normal file
|
@ -0,0 +1,48 @@
|
|||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue