Review Request 121698: Add edit context menu to TextField/TextArea
Kai Uwe Broulik
kde at privat.broulik.de
Sat Dec 27 17:46:08 UTC 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/121698/
-----------------------------------------------------------
(Updated Dez. 27, 2014, 5:46 nachm.)
Status
------
This change has been discarded.
Review request for Plasma.
Repository: plasma-framework
Description
-------
This adds a context menu that is similar to what is found on regular textfields/textareas consisting of
- Undo
- Redo
- Cut
- Copy
- Paste
- Delete
- Clear
- Select All
It does not show the standard shortcuts as I couldn't figure out how that would be done. There's a "StandardKey" referenced by the QQC Action item but I couldn't find documentation about it and also I cannot use Action {} in a MenuItem.
Diffs
-----
src/declarativeimports/plasmastyle/TextAreaStyle.qml 41299c5
src/declarativeimports/plasmastyle/TextFieldStyle.qml 2e5b718
src/declarativeimports/plasmastyle/private/EditContextMenuArea.qml PRE-CREATION
Diff: https://git.reviewboard.kde.org/r/121698/diff/
Testing
-------
The menu seems to work as expected, items are enabled/disabled as needed or when the control is disabled. The MouseArea doesn't errorneously eat events either.
File Attachments
----------------
Context menu in action
https://git.reviewboard.kde.org/media/uploaded/files/2014/12/27/ab2162e2-dc13-4c99-9a66-aaeeb08b6384__editcontextmenu.png
Thanks,
Kai Uwe Broulik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20141227/2e8ac7e0/attachment.html>
More information about the Plasma-devel
mailing list