Review Request 110303: Reimplement handling of Shift while showing menu without KModifierKeyInfo
David Faure
faure at kde.org
Sat May 4 19:39:36 BST 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/110303/
-----------------------------------------------------------
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/20130504/60a7b87a/attachment.htm>
More information about the kfm-devel
mailing list