mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-02 13:55:13 +03:00
831e8db20a
http://doc.qt.io/qtcreator/creator-checking-code-syntax.html#automatically-formatting-qml-js-files
50 lines
1.2 KiB
QML
50 lines
1.2 KiB
QML
import QtQuick 2.5
|
|
import QtQuick.Controls 1.4
|
|
import "utils.js" as Utils
|
|
|
|
DefaultDialog {
|
|
|
|
id: aboutPage
|
|
title: qsTr("About Yubico Authenticator")
|
|
property var device
|
|
property bool slotMode
|
|
|
|
Item {
|
|
focus: true
|
|
Keys.onEscapePressed: close()
|
|
}
|
|
|
|
Label {
|
|
text: qsTr("Yubico Authenticator ") + appVersion
|
|
font.bold: true
|
|
}
|
|
|
|
Label {
|
|
visible: !slotMode
|
|
text: qsTr("YubiKey OATH Version: ")
|
|
+ (!slotMode && device.hasDevice ? Utils.versionString(
|
|
device.version) : qsTr(
|
|
"<i>No device</i>"))
|
|
}
|
|
|
|
Label {
|
|
text: qsTr("Copyright © 2018, Yubico Inc. All rights reserved.")
|
|
}
|
|
|
|
Label {
|
|
text: qsTr("Need help?")
|
|
font.bold: true
|
|
}
|
|
|
|
Label {
|
|
text: qsTr("Visit <b>Yubico Knowledge Base</b>.")
|
|
MouseArea {
|
|
anchors.fill: parent
|
|
acceptedButtons: Qt.LeftButton
|
|
cursorShape: Qt.PointingHandCursor
|
|
onClicked: Qt.openUrlExternally(
|
|
"https://www.yubico.com/support/knowledge-base/")
|
|
}
|
|
}
|
|
}
|