2020-06-17 19:18:31 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
2021-09-28 15:04:06 +00:00
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
import StatusQ.Core 0.1
|
|
|
|
import StatusQ.Core.Theme 0.1
|
2022-03-17 16:15:38 +00:00
|
|
|
import StatusQ.Controls 0.1
|
2021-10-06 09:16:39 +00:00
|
|
|
|
2021-09-28 15:04:06 +00:00
|
|
|
import utils 1.0
|
2021-10-27 21:27:49 +00:00
|
|
|
import shared 1.0
|
|
|
|
import shared.status 1.0
|
2020-05-27 21:28:25 +00:00
|
|
|
|
|
|
|
Item {
|
2021-10-06 09:16:39 +00:00
|
|
|
id: root
|
2020-05-27 21:28:25 +00:00
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.fillWidth: true
|
2021-04-08 15:44:58 +00:00
|
|
|
clip: true
|
2020-05-27 21:28:25 +00:00
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
property var store
|
2022-01-28 08:19:49 +00:00
|
|
|
property var globalStore
|
2021-12-09 13:28:02 +00:00
|
|
|
property int profileContentWidth
|
2021-10-06 09:16:39 +00:00
|
|
|
|
2021-01-14 13:23:48 +00:00
|
|
|
Column {
|
|
|
|
id: generalColumn
|
|
|
|
spacing: Style.current.bigPadding
|
2020-05-27 21:28:25 +00:00
|
|
|
anchors.top: parent.top
|
2021-01-14 13:23:48 +00:00
|
|
|
anchors.topMargin: 46
|
2021-12-09 13:28:02 +00:00
|
|
|
width: profileContentWidth
|
2021-03-18 09:33:39 +00:00
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
2020-09-23 17:22:05 +00:00
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
// TODO: replace with StatusListItem
|
2021-01-14 13:23:48 +00:00
|
|
|
StatusSectionDescItem {
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "App version"
|
|
|
|
name: qsTrId("version")
|
|
|
|
//% "Version: %1"
|
2021-10-06 09:16:39 +00:00
|
|
|
description: qsTrId("version---1").arg(root.store.getCurrentVersion())
|
2021-03-25 19:37:55 +00:00
|
|
|
tooltipUnder: true
|
2022-01-28 08:19:49 +00:00
|
|
|
store: root.globalStore
|
2020-09-23 17:22:05 +00:00
|
|
|
}
|
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
// TODO: replace with StatusListItem
|
2021-01-14 13:23:48 +00:00
|
|
|
StatusSectionDescItem {
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "Node version "
|
|
|
|
name: qsTrId("node-version-")
|
2021-10-06 09:16:39 +00:00
|
|
|
description: root.store.nodeVersion()
|
2022-01-28 08:19:49 +00:00
|
|
|
store: root.globalStore
|
2020-09-23 17:22:05 +00:00
|
|
|
}
|
2020-06-17 21:05:59 +00:00
|
|
|
|
2022-03-17 16:15:38 +00:00
|
|
|
StatusFlatButton {
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "Check for updates"
|
|
|
|
text: qsTrId("check-for-updates")
|
2022-03-17 16:15:38 +00:00
|
|
|
loading: root.store.fetchingUpdate
|
|
|
|
onClicked: root.store.checkForUpdates()
|
|
|
|
icon.width: 0
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: -leftPadding
|
2020-06-17 21:05:59 +00:00
|
|
|
}
|
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
StatusBaseText {
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "Privacy Policy"
|
|
|
|
text: qsTrId("privacy-policy")
|
2021-01-14 13:23:48 +00:00
|
|
|
font.pixelSize: 15
|
2021-10-06 09:16:39 +00:00
|
|
|
color: Theme.palette.primaryColor1
|
2021-01-14 13:23:48 +00:00
|
|
|
|
|
|
|
MouseArea {
|
|
|
|
anchors.fill: parent
|
|
|
|
cursorShape: Qt.PointingHandCursor
|
|
|
|
hoverEnabled: true
|
|
|
|
onEntered: {
|
|
|
|
parent.font.underline = true
|
|
|
|
}
|
|
|
|
onExited: {
|
|
|
|
parent.font.underline = false
|
|
|
|
}
|
|
|
|
onClicked: {
|
2021-12-06 21:10:54 +00:00
|
|
|
Global.openLink("https://status.im/privacy-policy/")
|
2021-01-14 13:23:48 +00:00
|
|
|
}
|
|
|
|
}
|
2020-06-17 21:05:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|