D25176: Add a displayHint property to Action

Arjen Hiemstra noreply at phabricator.kde.org
Wed Nov 6 18:40:07 GMT 2019


ahiemstra created this revision.
ahiemstra added a reviewer: Kirigami.
Herald added a project: Kirigami.
Herald added a subscriber: plasma-devel.
ahiemstra requested review of this revision.

REVISION SUMMARY
  This property can be used to indicate preferences on how to display the
  action to implementations using Action. It mimics some of the behaviour
  of QAction's priority property, but is more explicit and allows some
  behaviour the priority property would not.
  
  Additionally, this changes PrivateActionToolButton to make use of the
  displayHint property for its showText and showMenuArrow properties.

TEST PLAN
  Tool buttons created through actions in Kirigami gallery still show
  their text and menu arrows.

REPOSITORY
  R169 Kirigami

BRANCH
  action_displayhint

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

AFFECTED FILES
  src/controls/Action.qml
  src/controls/private/PrivateActionToolButton.qml

To: ahiemstra, #kirigami
Cc: plasma-devel, fbampaloukas, GB_2, domson, dkardarakos, ngraham, apol, ahiemstra, davidedmundson, mart, hein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20191106/6ef27b58/attachment.html>


More information about the Plasma-devel mailing list