KGlobalAccel
kglobalaccel.h
67 * @c Shadowed : Sequence being shadowed: (Alt+B, Alt+F, Alt+G, <any key>), (<any key>, Alt+B, Alt+F, Alt+G)
134 static QList<KGlobalShortcutInfo> globalShortcutsByKey(const QKeySequence &seq, MatchType type = Equal);
144 static bool isGlobalShortcutAvailable(const QKeySequence &seq, const QString &component = QString());
155 static bool promptStealShortcutSystemwide(QWidget *parent, const QList<KGlobalShortcutInfo> &shortcuts, const QKeySequence &seq);
160 * Upon shortcut change the globalShortcutChanged will be triggered so other applications get notified
166 bool setDefaultShortcut(QAction *action, const QList<QKeySequence> &shortcut, GlobalShortcutLoading loadFlag = Autoloading);
174 * action->objectName() to enable cross-application bookkeeping. If the action->objectName() is empty this method will
177 * It is mandatory that the action->objectName() doesn't change once the shortcut has been successfully registered.
179 * \note KActionCollection::insert(name, action) will set action's objectName to name so you often
191 * @param shortcut global shortcut(s) to assign. Will be ignored unless @p loading is set to NoAutoloading or this is the first time ever you call this
193 * @param loadFlag if Autoloading, assign the global shortcut this action has previously had if any.
205 bool setShortcut(QAction *action, const QList<QKeySequence> &shortcut, GlobalShortcutLoading loadFlag = Autoloading);
263 QList<QKeySequence> globalShortcut(const QString &componentName, const QString &actionId) const;
302 KGLOBALACCEL_NO_EXPORT OrgKdeKglobalaccelComponentInterface *getComponent(const QString &componentUnique);
309KGLOBALACCEL_EXPORT QDBusArgument &operator<<(QDBusArgument &argument, const KGlobalAccel::MatchType &type);
310KGLOBALACCEL_EXPORT const QDBusArgument &operator>>(const QDBusArgument &argument, KGlobalAccel::MatchType &type);
void globalShortcutChanged(QAction *action, const QKeySequence &seq)
Emitted when the global shortcut is changed.
Q_ENUM(...)
Q_SIGNALSQ_SIGNALS
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:10:29 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:10:29 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.