You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.5 KiB
QML
54 lines
1.5 KiB
QML
/*
|
|
* SPDX-FileCopyrightText: 2021 George Florea Bănuș <georgefb899@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*/
|
|
|
|
import QtQuick 2.12
|
|
import QtQuick.Controls 2.12
|
|
import QtQuick.Layouts 1.12
|
|
import QtQml 2.12
|
|
|
|
import org.kde.kirigami 2.11 as Kirigami
|
|
import org.kde.haruna 1.0
|
|
|
|
Kirigami.ScrollablePage {
|
|
id: root
|
|
|
|
property bool hasHelp: false
|
|
property string helpFile: ""
|
|
property string docPage: ""
|
|
|
|
actions {
|
|
contextualActions: [
|
|
Kirigami.Action {
|
|
text: qsTr("Help!")
|
|
iconName: "system-help"
|
|
Kirigami.Action {
|
|
text: qsTr("Haruna help window (english only)")
|
|
enabled: root.hasHelp
|
|
onTriggered: root.hasHelp ? helpWindow.show() : undefined
|
|
}
|
|
Kirigami.Action {
|
|
text: qsTr("KHelpCenter")
|
|
enabled: root.docPage !== ""
|
|
onTriggered: enabled ? app.openDocs(root.docPage) : undefined
|
|
}
|
|
},
|
|
Kirigami.Action {
|
|
text: qsTr("Open config ...")
|
|
iconName: "folder"
|
|
Kirigami.Action {
|
|
text: qsTr("File")
|
|
onTriggered: Qt.openUrlExternally(app.configFilePath)
|
|
}
|
|
Kirigami.Action {
|
|
text: qsTr("Folder")
|
|
onTriggered: Qt.openUrlExternally(app.configFolderPath)
|
|
}
|
|
}
|
|
]
|
|
}
|
|
|
|
}
|