D24736: Grab the keyboard when KeySequenceItem is recording

Kai Uwe Broulik noreply at phabricator.kde.org
Thu Oct 17 15:01:37 BST 2019


broulik added a comment.


  Alternatively you could make the `KeySequenceHelper` itself a `QQuickItem` so it gets assigned a window.

INLINE COMMENTS

> keysequencehelper.cpp:118
>      QString shortcutDisplay;
> -
> +    QQuickItem* keySequenceItem;
>      //! Check the key sequence against KStandardShortcut::find()

Typically store items created by QtQuick in a `QPointer` so we can detect when they are garbage collected

> keysequencehelper.h:65
> +        READ keySequenceItem
> +        WRITE setKeySequenceItem)
>  

this needs a `NOTIFY` argument, corresponding `signal` and `emit` in the setter

REPOSITORY
  R296 KDeclarative

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

To: davidre, #frameworks
Cc: broulik, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20191017/f12cd8c8/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list