Warning, /utilities/skanpage/src/qml/ShortcutsAction.qml is written in an unsupported language. File is not indexed.
0001 /** 0002 * SPDX-FileCopyrightText: 2023 by John Doe <kde.sp90x@simplelogin.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 import QtQuick 2.15 0008 0009 import org.kde.kirigami 2.19 as Kirigami 0010 import org.kde.skanpage 1.0 0011 0012 /* Tiny, tiny, utility for making an action's shortcut configurable */ 0013 0014 Kirigami.Action { 0015 id: _action 0016 property string shortcutsName 0017 property var _shortcuts_var: Shortcut { id: _shortcuts; onActivated: _action.trigger() } 0018 Component.onCompleted: { skanpage.registerAction(_action, _shortcuts, icon.name) } 0019 }