mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-15 11:45:54 +00:00
43 lines
1.0 KiB
QML
43 lines
1.0 KiB
QML
/*
|
|
SPDX-FileCopyrightText: 2013 Marco Martin <mart@kde.org>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
import QtQuick 2.0
|
|
import QtQuick.Controls 2.3 as QQC2
|
|
import QtQuick.Layouts 1.0
|
|
import org.kde.kquickcontrols 2.0
|
|
import org.kde.kirigami 2.14 as Kirigami
|
|
|
|
Kirigami.ScrollablePage {
|
|
id: root
|
|
|
|
title: i18n("Shortcuts")
|
|
|
|
signal configurationChanged
|
|
function saveConfig() {
|
|
plasmoid.globalShortcut = button.keySequence
|
|
}
|
|
|
|
ColumnLayout {
|
|
spacing: Kirigami.Units.smallSpacing
|
|
|
|
QQC2.Label {
|
|
Layout.fillWidth: true
|
|
text: i18nd("plasma_shell_org.kde.plasma.desktop", "This shortcut will activate the applet as though it had been clicked.")
|
|
wrapMode: Text.WordWrap
|
|
}
|
|
|
|
KeySequenceItem {
|
|
id: button
|
|
keySequence: plasmoid.globalShortcut
|
|
onKeySequenceChanged: {
|
|
if (keySequence !== plasmoid.globalShortcut) {
|
|
root.configurationChanged();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|