Warning, /plasma/kdeplasma-addons/applets/notes/package/contents/ui/ShortcutMenuItem.qml is written in an unsupported language. File is not indexed.

0001 /*
0002  *   SPDX-FileCopyrightText: 2019 Luca Carlon <carlon.luca@gmail.com>
0003  *
0004  *   SPDX-License-Identifier: LGPL-2.0-or-later
0005  */
0006 
0007 import QtQuick 2.15
0008 import QtQuick.Controls 2.15
0009 import QtQuick.Window 2.15
0010 
0011 MenuItem {
0012     property var _sequence: []
0013     property alias _text: actionElement.text
0014     property alias _enabled: actionElement.enabled
0015     property alias _iconName: actionElement.icon.name
0016 
0017     Shortcut {
0018         id: shortcutElement
0019         sequences: [_sequence]
0020         enabled: false
0021     }
0022 
0023     action: Action {
0024         id: actionElement
0025         shortcut: shortcutElement.sequences ? shortcutElement.sequences[0] : null
0026     }
0027 }