KDEUI
kaction.h
Go to the documentation of this file.
221 Q_PROPERTY( bool shortcutConfigurable READ isShortcutConfigurable WRITE setShortcutConfigurable )
224 Q_PROPERTY( bool globalShortcutAllowed READ globalShortcutAllowed WRITE setGlobalShortcutAllowed )
328 void setShortcut(const KShortcut& shortcut, ShortcutTypes type = ShortcutTypes(ActiveShortcut | DefaultShortcut));
342 void setShortcut(const QKeySequence& shortcut, ShortcutTypes type = ShortcutTypes(ActiveShortcut | DefaultShortcut));
356 void setShortcuts(const QList<QKeySequence>& shortcuts, ShortcutTypes type = ShortcutTypes(ActiveShortcut | DefaultShortcut));
443 KDE_DEPRECATED void setGlobalShortcutAllowed(bool allowed, GlobalShortcutLoading loading = Autoloading);
467 void setShapeGesture(const KShapeGesture& gest, ShortcutTypes type = ShortcutTypes(ActiveShortcut | DefaultShortcut));
468 void setRockerGesture(const KRockerGesture& gest, ShortcutTypes type = ShortcutTypes(ActiveShortcut | DefaultShortcut));
@ Autoloading
Look up the action in global settings (using its main component's name and text()) and set the shortc...
Definition kaction.h:251
void authorized(KAuth::Action *action)
Signal emitted when the action is triggered and authorized.
void triggered(Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers)
Emitted when the action is triggered.
void globalShortcutChanged(const QKeySequence &)
Emitted when the global shortcut is changed.
bool isShortcutConfigurable() const
Returns true if this action's shortcut is configurable.
Definition kaction.cpp:173
void setShortcutConfigurable(bool configurable)
Indicate whether the user may configure the action's shortcut.
Definition kaction.cpp:178
void setGlobalShortcut(const KShortcut &shortcut, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut), GlobalShortcutLoading loading=Autoloading)
Assign a global shortcut for this action.
Definition kaction.cpp:239
@ ActiveShortcut
The shortcut will immediately become active but may be reset to "default".
Definition kaction.h:235
@ DefaultShortcut
The shortcut is a default shortcut - it becomes active when somebody decides to reset shortcuts to de...
Definition kaction.h:238
void setShortcut(const KShortcut &shortcut, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut))
Set the shortcut for this action.
Definition kaction.cpp:198
void setGlobalShortcutAllowed(bool allowed, GlobalShortcutLoading loading=Autoloading)
Indicate whether the programmer and/or user may define a global shortcut for this action.
Definition kaction.cpp:302
Definition kgesture.h:153
Definition kgesture.h:38
Defines platform-independent classes for keyboard shortcut handling.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.