Add a displayHint property to Action

Authored by ahiemstra on Nov 8 2019, 4:01 PM.

Description

Add a displayHint property to Action

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.

Reviewers: Kirigami, mart

Reviewed By: Kirigami, mart

Subscribers: broulik, leinir, plasma-devel

Tags: Kirigami

Differential Revision: https://phabricator.kde.org/D25176

Details

Committed
ahiemstraNov 11 2019, 3:51 PM
Reviewer
Kirigami
Differential Revision
D25176: Add a displayHint property to Action
Parents
R169:0577d3a3324e: GIT_SILENT Upgrade KF5 version to 5.65.0.
Branches
Unknown
Tags
Unknown