Kirigami-addons

ShortcutsConfigurationModule.qml
1// SPDX-FileCopyrightText: 2024 Carl Schwan <carl@carlschwan.eu>
2// SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
3
4import QtQuick
5import org.kde.kirigami as Kirigami
6import org.kde.kirigamiaddons.settings.private as Private
7import org.kde.kirigamiaddons.statefulapp as StatefulApp
8
9/**
10 * Configuration module for keyboard shortcuts.
11 *
12 * @since KirigamiAddons 1.7.0
13 */
14ConfigurationModule {
15 id: root
16
17 /**
18 * This property holds the abstract KirigamiApplication from the statefulapp module.
19 */
20 required property StatefulApp.AbstractKirigamiApplication application
21
22 moduleId: "shortcuts"
23 text: i18ndc("kirigami-addons6", "@action:button", "Keyboard Shortcuts")
24 icon.name: "input-keyboard-symbolic"
25 page: () => Qt.createComponent("org.kde.kirigamiaddons.statefulapp.private", "ShortcutsEditor")
26 visible: !Kirigami.Settings.isMobile
27 initialProperties: () => {
28 return {
29 model: root.application.shortcutsModel
30 };
31 }
32}
QString i18ndc(const char *domain, const char *context, const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:50 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.