KXmlGui
kkeysequencewidget.h
42 Q_PROPERTY(QKeySequence keySequence READ keySequence WRITE setKeySequence NOTIFY keySequenceChanged)
44 Q_PROPERTY(bool multiKeyShortcutsAllowed READ multiKeyShortcutsAllowed WRITE setMultiKeyShortcutsAllowed)
46 Q_PROPERTY(ShortcutTypes checkForConflictsAgainst READ checkForConflictsAgainst WRITE setCheckForConflictsAgainst)
void setModifierlessAllowed(bool allow)
This only applies to user input, not to setKeySequence().
Definition kkeysequencewidget.cpp:458
QFlags< ShortcutType > ShortcutTypes
Stores a combination of ShortcutType values.
Definition kkeysequencewidget.h:90
bool isKeySequenceAvailable(const QKeySequence &seq) const
Checks whether the key sequence seq is available to grab.
Definition kkeysequencewidget.cpp:463
void setModifierOnlyAllowed(bool allow)
Whether to allow modifier-only key sequences.
Definition kkeysequencewidget.cpp:483
void setClearButtonShown(bool show)
Set whether a small button to set an empty key sequence should be displayed next to the main input wi...
Definition kkeysequencewidget.cpp:488
void setMultiKeyShortcutsAllowed(bool)
Allow multikey shortcuts?
Definition kkeysequencewidget.cpp:448
void keySequenceChanged(const QKeySequence &seq)
This signal is emitted when the current key sequence has changed, be it by user input or programmatic...
bool isModifierlessAllowed()
Definition kkeysequencewidget.cpp:473
void setComponentName(const QString &componentName)
If the component using this widget supports shortcuts contexts, it has to set its component name so w...
Definition kkeysequencewidget.cpp:438
void applyStealShortcut()
Actually remove the shortcut that the user wanted to steal, from the action that was using it.
Definition kkeysequencewidget.cpp:531
void setKeySequence(const QKeySequence &seq, Validation val=NoValidate)
Set the key sequence.
Definition kkeysequencewidget.cpp:511
void setCheckActionCollections(const QList< KActionCollection * > &actionCollections)
Set a list of action collections to check against for conflictuous shortcut.
Definition kkeysequencewidget.cpp:493
void stealShortcut(const QKeySequence &seq, QAction *action)
This signal is emitted after the user agreed to steal a shortcut from an action.
void setCheckForConflictsAgainst(ShortcutTypes types)
Configure if the widget should check for conflicts with existing shortcuts.
Definition kkeysequencewidget.cpp:453
Q_FLAG(...)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QWidget(QWidget *parent, Qt::WindowFlags f)
virtual bool event(QEvent *event) override
void show()
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:54:16 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:54:16 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.