2023-11-13 21:04:58 +03:00
|
|
|
import QtQuick 2.6
|
|
|
|
import Sailfish.Silica 1.0
|
|
|
|
|
|
|
|
|
|
|
|
Page {
|
|
|
|
id: page
|
|
|
|
allowedOrientations: Orientation.Portrait //All
|
|
|
|
|
|
|
|
SilicaFlickable {
|
|
|
|
id: listView
|
|
|
|
anchors.fill: parent
|
|
|
|
contentHeight: idColumn.height // Tell SilicaFlickable the height of its content.
|
|
|
|
|
|
|
|
VerticalScrollDecorator {}
|
|
|
|
|
|
|
|
Column {
|
|
|
|
id: idColumn
|
|
|
|
x: Theme.paddingLarge
|
|
|
|
width: parent.width - 2*x
|
|
|
|
|
2023-11-13 21:18:38 +03:00
|
|
|
SectionHeader{
|
|
|
|
text: qsTr("About")
|
|
|
|
}
|
|
|
|
|
|
|
|
Image {
|
|
|
|
id: logo
|
|
|
|
source: "/usr/share/icons/hicolor/172x172/apps/harbour-expenditure.png"
|
|
|
|
smooth: true
|
|
|
|
height: parent.width / 2
|
|
|
|
width: parent.width / 2
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
}
|
2023-11-13 21:04:58 +03:00
|
|
|
Label {
|
|
|
|
width: parent.width
|
|
|
|
height: Theme.itemSizeLarge
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
verticalAlignment: Text.AlignVCenter
|
|
|
|
font.pixelSize: Theme.fontSizeLarge
|
|
|
|
color: Theme.primaryColor
|
|
|
|
text: qsTr("Expenditure")
|
|
|
|
}
|
|
|
|
Item {
|
|
|
|
width: parent.width
|
|
|
|
height: Theme.paddingLarge
|
|
|
|
}
|
|
|
|
Item {
|
|
|
|
width: parent.width
|
|
|
|
height: Theme.paddingLarge * 2.5
|
|
|
|
}
|
|
|
|
Label {
|
|
|
|
x: Theme.paddingMedium
|
|
|
|
width: parent.width - 2*x
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
font.pixelSize: Theme.fontSizeExtraSmall
|
|
|
|
wrapMode: Text.Wrap
|
|
|
|
text: qsTr("Expenditure is a tool to track and split bills, project or trip expenses in multiple currencies among groups.")
|
|
|
|
|
|
|
|
}
|
|
|
|
Label {
|
|
|
|
x: Theme.paddingMedium
|
|
|
|
width: parent.width - 2*x
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
font.pixelSize: Theme.fontSizeExtraSmall
|
|
|
|
wrapMode: Text.Wrap
|
|
|
|
text: qsTr("Thanksgiving, feedback and support is always welcome.")
|
|
|
|
bottomPadding: Theme.paddingLarge * 2
|
|
|
|
}
|
2023-11-13 21:18:38 +03:00
|
|
|
SectionHeader{
|
|
|
|
text: qsTr("Troubleshooting")
|
|
|
|
}
|
|
|
|
|
|
|
|
Label {
|
|
|
|
x: Theme.paddingMedium
|
|
|
|
width: parent.width - 2*x
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
font.pixelSize: Theme.fontSizeExtraSmall
|
|
|
|
wrapMode: Text.Wrap
|
|
|
|
text: qsTr("In case of any database error tap 10x on the word 'Settings' for cleanup options.")
|
|
|
|
bottomPadding: Theme.paddingLarge * 2
|
|
|
|
}
|
|
|
|
SectionHeader {
|
|
|
|
text: qsTr("Source code")
|
|
|
|
}
|
|
|
|
|
2023-11-13 21:04:58 +03:00
|
|
|
Label {
|
|
|
|
x: Theme.paddingMedium
|
|
|
|
width: parent.width - 2*x
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
font.pixelSize: Theme.fontSizeExtraSmall
|
|
|
|
wrapMode: Text.Wrap
|
2023-11-13 21:18:38 +03:00
|
|
|
text: qsTr("Thanksgiving, feedback and support is always welcome.")
|
2023-11-13 21:04:58 +03:00
|
|
|
bottomPadding: Theme.paddingLarge * 2
|
2023-11-13 21:18:38 +03:00
|
|
|
onLinkActivated: Qt.openUrlExternally(link)
|
2023-11-13 21:04:58 +03:00
|
|
|
}
|
2023-11-13 21:18:38 +03:00
|
|
|
BackgroundItem{
|
|
|
|
width: parent.width
|
|
|
|
height: Theme.itemSizeMedium
|
|
|
|
Row{
|
|
|
|
width:parent.width - 2 * x
|
|
|
|
height: parent.height
|
|
|
|
x:Theme.horizontalPageMargin
|
|
|
|
spacing:Theme.paddingLarge
|
|
|
|
|
|
|
|
Label{
|
|
|
|
width: parent.width - parent.spacing
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
wrapMode: Text.WrapAnywhere
|
|
|
|
font.pixelSize: Theme.fontSizeSmall
|
|
|
|
|
|
|
|
text: "https://github.com/yajo10/harbour-expenditure"
|
|
|
|
color: parent.parent.pressed ? Theme.highlightColor : Theme.primaryColor
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
onClicked: Qt.openUrlExternally("https://github.com/yajo10/harbour-expenditure")
|
|
|
|
}
|
|
|
|
|
2023-11-13 21:04:58 +03:00
|
|
|
Label {
|
|
|
|
width: parent.width
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
font.pixelSize: Theme.fontSizeExtraSmall
|
|
|
|
color: Theme.secondaryColor
|
|
|
|
wrapMode: Text.Wrap
|
2023-11-13 21:18:38 +03:00
|
|
|
text: qsTr("First author:")
|
|
|
|
+ "\n" + qsTr("Tobias Planitzer")
|
2023-11-13 21:04:58 +03:00
|
|
|
+ "\n" + ("tp.labs@protonmail.com")
|
|
|
|
+ "\n" + qsTr("License: GPL v3")
|
|
|
|
}
|
|
|
|
Item {
|
|
|
|
width: parent.width
|
|
|
|
height: Theme.paddingLarge * 2.5
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} // end Silica Flickable
|
|
|
|
}
|