D8827: experimental support for auto mnemonics

Kai Uwe Broulik noreply at phabricator.kde.org
Wed Nov 29 13:26:35 UTC 2017


broulik added a comment.


  A shortcut is registered by the `Shortcut` item by doing
  
    QGuiApplicationPrivate::instance()->shortcutMap.addShortcut(this, shortcut.keySequence, context, *ctxMatcher());
  
  `QShortcut` is in widgets and also another QObject. I don't see a way to do that using public API.
  We could have a global `Shortcut` that registers everythign and propagates it along but that would make things utterly complicated and ugly.

REPOSITORY
  R858 Qt Quick Controls 2: Desktop Style

REVISION DETAIL
  https://phabricator.kde.org/D8827

To: mart, #plasma
Cc: hein, broulik, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20171129/f5261055/attachment.html>


More information about the Plasma-devel mailing list