GlobalShortcutContext

Search for usage in LXR

GlobalShortcutContext Class Reference

#include <globalshortcutcontext.h>

Public Member Functions

 GlobalShortcutContext (const QString &uniqueName, const QString &friendlyName, Component *component)
 
virtual ~GlobalShortcutContext ()
 
void addShortcut (GlobalShortcut *shortcut)
 
QList< KGlobalShortcutInfoallShortcutInfos () const
 
Componentcomponent ()
 
const Componentcomponent () const
 
QString friendlyName () const
 
GlobalShortcutgetShortcutByKey (const QKeySequence &key, KGlobalAccel::MatchType type) const
 
bool isShortcutAvailable (const QKeySequence &key) const
 
GlobalShortcuttakeShortcut (GlobalShortcut *shortcut)
 
QString uniqueName () const
 

Detailed Description

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()

GlobalShortcutContext::~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:
This file is part of the KDE documentation.
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.