GlobalShortcutContext
#include <globalshortcutcontext.h>
Public Member Functions | |
GlobalShortcutContext (const QString &uniqueName, const QString &friendlyName, Component *component) | |
virtual | ~GlobalShortcutContext () |
void | addShortcut (GlobalShortcut *shortcut) |
QList< KGlobalShortcutInfo > | allShortcutInfos () const |
Component * | component () |
const Component * | component () const |
QString | friendlyName () const |
GlobalShortcut * | getShortcutByKey (const QKeySequence &key, KGlobalAccel::MatchType type) const |
bool | isShortcutAvailable (const QKeySequence &key) const |
GlobalShortcut * | takeShortcut (GlobalShortcut *shortcut) |
QString | uniqueName () const |
Detailed Description
Definition at line 23 of file globalshortcutcontext.h.
Constructor & Destructor Documentation
◆ GlobalShortcutContext()
GlobalShortcutContext::GlobalShortcutContext | ( | const QString & | uniqueName, |
const QString & | friendlyName, | ||
Component * | component | ||
) |
Default constructor.
Definition at line 14 of file globalshortcutcontext.cpp.
◆ ~GlobalShortcutContext()
|
virtual |
Destructor.
Definition at line 22 of file globalshortcutcontext.cpp.
Member Function Documentation
◆ addShortcut()
void GlobalShortcutContext::addShortcut | ( | GlobalShortcut * | shortcut | ) |
Adds shortcut
to the context.
Definition at line 28 of file globalshortcutcontext.cpp.
◆ allShortcutInfos()
QList< KGlobalShortcutInfo > GlobalShortcutContext::allShortcutInfos | ( | ) | const |
Return KGlobalShortcutInfos for all shortcuts.
Definition at line 33 of file globalshortcutcontext.cpp.
◆ getShortcutByKey()
GlobalShortcut * GlobalShortcutContext::getShortcutByKey | ( | const QKeySequence & | key, |
KGlobalAccel::MatchType | type | ||
) | const |
Get shortcut for key
or nullptr.
Definition at line 57 of file globalshortcutcontext.cpp.
◆ takeShortcut()
GlobalShortcut * GlobalShortcutContext::takeShortcut | ( | GlobalShortcut * | shortcut | ) |
Remove shortcut
from the context. The shortcut is not deleted.
Definition at line 89 of file globalshortcutcontext.cpp.
◆ uniqueName()
QString GlobalShortcutContext::uniqueName | ( | ) | const |
Get the name for the context.
Definition at line 96 of file globalshortcutcontext.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:10:03 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.