Review Request 110303: Reimplement handling of Shift while showing menu without KModifierKeyInfo

Commit Hook null at kde.org
Sun May 5 21:44:08 BST 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/110303/
-----------------------------------------------------------

(Updated May 5, 2013, 8:44 p.m.)


Status
------

This change has been marked as submitted.


Review request for Dolphin and Frank Reininghaus.


Description
-------

Reimplement handling of Shift while showing menu without KModifierKeyInfo

Finding out whether shift is pressed initially can be done
with qApp->keyboardModifiers(), and finding out that the user is pressing
or release shift can be done with keyPressEvent/keyReleaseEvent.

This required to inherit from KMenu rather than having the KMenu
as a member.

KModifierKeyInfo is only implemented on X11, so this makes the code
more portable. If similar solutions can be found for other users of
KModifierKeyInfo, it will be deprecated in KF5.


Diffs
-----

  dolphin/src/dolphincontextmenu.h 3d0005d30a21810546dabd754ea166427ada5870 
  dolphin/src/dolphincontextmenu.cpp bb26c7aaeda87ba77f9e241cfde6c4961ce90640 
  dolphin/src/dolphinmainwindow.cpp 9454c8c42cb7f9df775773508ad4aec156f55f28 

Diff: http://git.reviewboard.kde.org/r/110303/diff/


Testing
-------


Thanks,

David Faure

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20130505/714356ce/attachment.htm>


More information about the kfm-devel mailing list