2016-02-10 20:53:59 +00:00
|
|
|
import QtQuick 2.3
|
|
|
|
import QtQuick.Controls 1.2
|
|
|
|
import QtQuick.Layouts 1.1
|
2016-03-08 20:26:54 +00:00
|
|
|
import org.kde.kirigami 1.0 as Kirigami
|
2016-02-10 20:53:59 +00:00
|
|
|
import org.subsurfacedivelog.mobile 1.0
|
|
|
|
|
2016-03-08 20:26:54 +00:00
|
|
|
Kirigami.ScrollablePage {
|
2016-02-11 14:16:10 +00:00
|
|
|
id: aboutPage
|
2016-04-07 19:12:01 +00:00
|
|
|
property int pageWidth: aboutPage.width - aboutPage.leftPadding - aboutPage.rightPadding
|
2016-05-03 19:24:00 +00:00
|
|
|
title: qsTr("About Subsurface-mobile")
|
2016-02-10 20:53:59 +00:00
|
|
|
|
2016-03-08 20:26:54 +00:00
|
|
|
ColumnLayout {
|
|
|
|
spacing: Kirigami.Units.largeSpacing
|
|
|
|
width: aboutPage.width
|
|
|
|
Layout.margins: Kirigami.Units.gridUnit / 2
|
2016-02-10 20:53:59 +00:00
|
|
|
|
|
|
|
|
2016-03-08 20:26:54 +00:00
|
|
|
Kirigami.Heading {
|
2016-05-03 19:24:00 +00:00
|
|
|
text: qsTr("About Subsurface-mobile")
|
2016-04-01 02:57:12 +00:00
|
|
|
Layout.topMargin: Kirigami.Units.gridUnit
|
2016-03-08 20:26:54 +00:00
|
|
|
Layout.alignment: Qt.AlignHCenter
|
|
|
|
Layout.maximumWidth: pageWidth
|
|
|
|
wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere
|
|
|
|
}
|
2016-04-01 02:57:12 +00:00
|
|
|
Image {
|
|
|
|
id: image
|
|
|
|
source: "qrc:/qml/subsurface-mobile-icon.png"
|
|
|
|
width: pageWidth / 2
|
|
|
|
height: width
|
|
|
|
fillMode: Image.Stretch
|
|
|
|
Layout.alignment: Qt.AlignCenter
|
|
|
|
horizontalAlignment: Image.AlignHCenter
|
2016-03-08 20:26:54 +00:00
|
|
|
}
|
2016-02-10 20:53:59 +00:00
|
|
|
|
2016-03-08 20:26:54 +00:00
|
|
|
Kirigami.Heading {
|
2016-05-03 19:24:00 +00:00
|
|
|
text: qsTr("A mobile version of the free Subsurface divelog software.\n") +
|
|
|
|
qsTr("View your dive logs while on the go.")
|
2016-03-08 20:26:54 +00:00
|
|
|
level: 4
|
|
|
|
Layout.alignment: Qt.AlignHCenter
|
|
|
|
Layout.topMargin: Kirigami.Units.largeSpacing * 3
|
|
|
|
Layout.maximumWidth: pageWidth
|
|
|
|
wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere
|
|
|
|
anchors.horizontalCenter: parent.Center
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
}
|
2016-02-10 20:53:59 +00:00
|
|
|
|
2016-03-08 20:26:54 +00:00
|
|
|
Kirigami.Heading {
|
2016-05-03 19:24:00 +00:00
|
|
|
text: qsTr("Version: %1\n\n© Subsurface developer team\n2011-2016").arg(manager.getVersion())
|
2016-03-08 20:26:54 +00:00
|
|
|
level: 5
|
|
|
|
font.pointSize: subsurfaceTheme.smallPointSize + 1
|
|
|
|
Layout.alignment: Qt.AlignHCenter
|
|
|
|
Layout.topMargin: Kirigami.Units.largeSpacing
|
|
|
|
Layout.maximumWidth: pageWidth
|
|
|
|
wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere
|
|
|
|
anchors.horizontalCenter: parent.Center
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
2016-02-11 14:16:10 +00:00
|
|
|
}
|
2016-02-10 20:53:59 +00:00
|
|
|
}
|
|
|
|
}
|