Add About page
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import QtQuick
|
||||
import QtQuick.Controls as Controls
|
||||
import org.kde.kirigami as Kirigami
|
||||
import org.kde.coreaddons as KCoreAddons
|
||||
import org.kde.kirigamiaddons.formcard as FormCard
|
||||
|
||||
FormCard.AboutPage {
|
||||
aboutData: KCoreAddons.AboutData
|
||||
donateUrl: "https://opencollective.com/wivrn"
|
||||
getInvolvedUrl: ""
|
||||
|
||||
footer: Controls.DialogButtonBox {
|
||||
standardButtons: Controls.DialogButtonBox.NoButton
|
||||
onAccepted: applicationWindow().pageStack.pop()
|
||||
|
||||
Controls.Button {
|
||||
text: i18nc("go back to the home page", "Back")
|
||||
icon.name: "go-previous"
|
||||
Controls.DialogButtonBox.buttonRole: Controls.DialogButtonBox.AcceptRole
|
||||
}
|
||||
}
|
||||
|
||||
Shortcut {
|
||||
sequences: [StandardKey.Cancel]
|
||||
onActivated: {if (isCurrentPage) applicationWindow().pageStack.pop();}
|
||||
}
|
||||
}
|
||||
@@ -421,6 +421,11 @@ Kirigami.ApplicationWindow {
|
||||
onTriggered: root.pageStack.push(Qt.createComponent("SettingsPage.qml").createObject())
|
||||
enabled: root.server_started
|
||||
},
|
||||
Kirigami.Action {
|
||||
text: i18n("About")
|
||||
icon.name: "help-about"
|
||||
onTriggered: root.pageStack.push(Qt.createComponent("About.qml").createObject())
|
||||
},
|
||||
Kirigami.Action {
|
||||
text: i18n("Troubleshoot")
|
||||
icon.name: "help-contents-symbolic"
|
||||
|
||||
Reference in New Issue
Block a user