D24879: [ComboBox] Follow focusPolicy

Aleix Pol Gonzalez noreply at phabricator.kde.org
Wed Oct 23 12:55:56 BST 2019


apol added a comment.


  Wouldn't it make more sense to not accept the event then?

INLINE COMMENTS

> ComboBox.qml:79
>          onPressed: {
> +            if ((controlRoot.focusPolicy & Qt.ClickFocus) === Qt.ClickFocus) {
> +                controlRoot.forceActiveFocus();

`if (controlRoot.focusPolicy & Qt.ClickFocus) {` should be enough.

REPOSITORY
  R858 Qt Quick Controls 2: Desktop Style

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

To: broulik, #plasma
Cc: apol, plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20191023/c267abf7/attachment.html>


More information about the Plasma-devel mailing list