[Interest] Standard QKeySequence for "Fullscreen"

Andreas Pakulat apaku at gmx.de
Sat Apr 21 21:13:58 CEST 2012


On 21.04.12 14:53:13, Till Oliver Knoll wrote:
> 
> Am 21.04.2012 um 13:04 schrieb Till Oliver Knoll <till.oliver.knoll at gmail.com>:
> 
> >> I assume KDE does not provide a way for applications to query those 
> >> settings, 
> > 
> > Without any concrete knowledge of the KDE API: I can't imagine that there's /no/ such public API which would expose *global* application settings.
> 
> Maybe there is really no (public) API to just get the QKeySequence, as defined in the KDE settings dialog, because to my understanding KDE applications just need to bother about the proper KAction instance, which for standard actions is easily instantiated via:
> 
>   http://api.kde.org/4.0-api/kdelibs-apidocs/kdeui/html/namespaceKStandardAction.html

Thats not the only API, there's also:

http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/namespaceKStandardShortcut.html

Which provides access to the primary/alternative QKeySequence. This does
require linking to KDE libs of course, which the Qt platform plugin is
for.

Andreas




More information about the Interest mailing list