tAboutPage.qml - sailfish-safe - Sailfish frontend for safe(1)
(HTM) git clone git://git.z3bra.org/sailfish-safe.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
tAboutPage.qml (2462B)
---
1 /*
2 * Copyright (C) 2019 Daniel Vrátil <dvratil@kde.org>
3 * 2021 Willy Goiffon <contact@z3bra.org>
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <https://www.gnu.org/licenses/>.
17 */
18
19 import QtQuick 2.2
20 import QtQml.Models 2.2
21 import Sailfish.Silica 1.0
22
23 Page {
24
25 Column {
26 anchors {
27 fill: parent
28 leftMargin: Theme.horizontalPageMargin
29 rightMargin: Theme.horizontalPageMargin
30 }
31
32 spacing: Theme.paddingMedium
33
34
35 PageHeader {
36 title: qsTr("About")
37 }
38
39 Row {
40 spacing: Theme.paddingLarge
41
42 Image {
43 anchors {
44 verticalCenter: parent.verticalCenter
45 }
46
47 id: icon
48 source: "../images/icon.png"
49 }
50
51 Column {
52 spacing: Theme.paddingMedium
53
54 Label {
55 text: qsTr("Safe")
56 font.pixelSize: Theme.fontSizeExtraLarge
57 }
58
59 Label {
60 text: qsTr("Version %1").arg(Qt.application.version)
61 font.pixelSize: Theme.fontSizeSmall
62 }
63
64 Label {
65 text: qsTr("Author: Willy Goiffon")
66 font.pixelSize: Theme.fontSizeSmall
67 }
68 }
69 }
70
71 Label {
72 readonly property string _url: "https://z3bra.org/safe"
73
74 textFormat: Text.RichText
75 text: qsTr("Homepage: <a href=\"%1\">safe secret keeper</a>").arg(_url)
76 font.pixelSize: Theme.fontSizeSmall
77 linkColor: Theme.highlightColor
78
79 onLinkActivated: Qt.openUrlExternally(_url)
80 }
81
82 Label {
83 text: qsTr("License: GPLv3")
84 font.pixelSize: Theme.fontSizeSmall
85 }
86 }
87 }