KDEUI
kaction.cpp
Go to the documentation of this file.
void setShapeGesture(const KShapeGesture &gest, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut))
Definition: kaction.cpp:341
void setRockerGesture(const KRockerGesture &gest, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut))
Definition: kaction.cpp:359
KAuth::Action * authAction() const
Returns the action object associated with this action, or 0 if it does not have one.
Definition: kaction.cpp:385
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
KShapeGesture shapeGesture(ShortcutTypes type=ActiveShortcut) const
Definition: kaction.cpp:323
KRockerGesture rockerGesture(ShortcutTypes type=ActiveShortcut) const
Definition: kaction.cpp:332
@ 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 setAuthAction(KAuth::Action *action)
Sets the action object associated with this action.
Definition: kaction.cpp:400
void forgetGlobalShortcut()
Sets the globalShortcutEnabled property to false and sets the global shortcut to an empty shortcut.
Definition: kaction.cpp:312
void setShortcut(const KShortcut &shortcut, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut))
Set the shortcut for this action.
Definition: kaction.cpp:198
void setShortcuts(const QList< QKeySequence > &shortcuts, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut))
Definition: kaction.cpp:224
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
AuthStatus
Denied
Authorized
AuthRequired
void removeGesture(const KShapeGesture &gesture, KAction *kact)
Definition: kgesturemap.cpp:92
void addGesture(const KShapeGesture &gesture, KAction *kact)
Definition: kgesturemap.cpp:68
static KGlobalAccel * self()
Returns (and creates if necessary) the singleton instance.
Definition: kglobalaccel.cpp:231
static void information(QWidget *parent, const QString &text, const QString &caption=QString(), const QString &dontShowAgainName=QString(), Options options=Notify)
Display an "Information" dialog.
Definition: kmessagebox.cpp:960
Definition: kgesture.h:153
Definition: kgesture.h:38
QKeySequence primary() const
Returns the primary key sequence of this shortcut.
Definition: kshortcut.cpp:134
QKeySequence alternate() const
Returns the alternate key sequence of this shortcut.
Definition: kshortcut.cpp:139
#define kDebug
#define kWarning
QString i18n(const char *text)
KAction * cut(const QObject *recvr, const char *slot, QObject *parent)
Cut selected area and store it in the clipboard.
Definition: kstandardaction.cpp:294
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.