KeySequenceItem QML Type
Import Statement: | import org.kde.kquickcontrols |
Inherits: |
Properties
- checkForConflictsAgainst : enumeration
- currentKeySequence : keySequence
- keySequence : alias
- modifierOnlyAllowed : bool
- modifierlessAllowed : bool
- multiKeyShortcutsAllowed : alias
- showCancelButton : bool
- showClearButton : bool
Signals
Methods
Detailed Description
Property Documentation
checkForConflictsAgainst : enumeration |
Controls which types of shortcuts are checked for conflicts when the keySequence is set.
If a conflict is detected, a messagebox will be shown asking the user to confirm their input. Valid values are combinations of the following flags:
Constant | Description |
---|---|
ShortcutType.None | Do not check for conflicts. |
ShortcutType.StandardShortcuts | Check against standard shortcuts. |
ShortcutType.GlobalShortcuts | Check against global shortcuts. |
The default is ShortcutType.GlobalShortcuts | ShortcutType.StandardShortcut
.
See also KStandardShortcut and KGlobalAccel.
currentKeySequence : keySequence |
keySequence : alias |
modifierOnlyAllowed : bool |
modifierlessAllowed : bool |
multiKeyShortcutsAllowed : alias |
showCancelButton : bool |
showClearButton : bool |
Signal Documentation
keySequenceModified() |
Emitted whenever the key sequence is modified by the user, interacting with the component.
Either by interacting capturing a key sequence or pressing the clear button.
Note: The corresponding handler is onKeySequenceModified
.
Method Documentation
startCapturing() |
Start capturing a key sequence.
This is equivalent to the user clicking on the main button of the item.