Review Request 128109: Provide demo/preview for checkable menu items too [WIP]

René J.V. Bertin rjvbertin at gmail.com
Wed Feb 8 15:53:17 UTC 2017


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

(Updated Feb. 8, 2017, 3:53 p.m.)


Status
------

This change has been discarded.


Review request for Plasma.


Repository: oxygen


Description
-------

It's come up that there currently is no "official" preview for how checked menu items are rendered as a function of installed widget style.

This patch explores a straightforward way of doing that via the most exhaustive style preview utility I am aware of, Oxygen's demo app.

This demo already has menus in the MDI preview. The patch makes the layout items checkable and puts them in a QActionGroup so their mutually exclusive nature is taken into account. It also adds a "right to left" non-exclusive checkable item which is linked to the "Left to Right" checkbox in the demo frame.

I looked for an appropriate way to uncheck the Tile/Cascade/Tabbed menu items (= when the user moves or resizes one of the MDI windows) but it seems those events are not available through signals and would thus require subclassing MdiSubWindow .


Diffs
-----

  kstyle/demo/oxygendemodialog.h b296ec7 
  kstyle/demo/oxygendemodialog.cpp 4a742e3 
  kstyle/demo/oxygenmdidemowidget.h eafbeee 
  kstyle/demo/oxygenmdidemowidget.cpp 3e5422e 

Diff: https://git.reviewboard.kde.org/r/128109/diff/


Testing
-------

On Linux and OS X with KF5 5.22.0 and Qt 5.6.0


File Attachments
----------------

Screen Shot 2016-06-06 at 14.03.10.png
  https://git.reviewboard.kde.org/media/uploaded/files/2016/06/06/9d99ea87-8f35-4ad0-a15c-855ef80d7017__Screen_Shot_2016-06-06_at_14.03.10.png
Screen Shot 2016-06-06 at 14.05.23.png
  https://git.reviewboard.kde.org/media/uploaded/files/2016/06/06/98364618-71c7-4715-864f-c6c0ce225544__Screen_Shot_2016-06-06_at_14.05.23.png
Screen Shot 2016-06-06 at 14.07.04.png
  https://git.reviewboard.kde.org/media/uploaded/files/2016/06/06/948c598b-097c-438e-876f-88f6bbbfb30c__Screen_Shot_2016-06-06_at_14.07.04.png


Thanks,

René J.V. Bertin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20170208/338016c8/attachment.html>


More information about the Plasma-devel mailing list