Add support for custom display components to Action
ClosedPublic

Authored by ahiemstra on Dec 13 2019, 9:47 AM.

Details

Summary

This adds a "displayComponent" property to Action, which allows specifying a
component to use when displaying an Action. Support is added to ActionToolBar
and ActionsMenu for displaying these custom components.

Demo:

Test Plan

ActionToolBar and ActionsMenu still work the same. The new Action Tool Bar page
in Kirigami Gallery displays the custom components. (See D25941)

Diff Detail

Repository
R169 Kirigami
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
ahiemstra created this revision.Dec 13 2019, 9:47 AM
Restricted Application added a project: Kirigami. · View Herald TranscriptDec 13 2019, 9:47 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
ahiemstra requested review of this revision.Dec 13 2019, 9:47 AM
ahiemstra edited the test plan for this revision. (Show Details)Dec 13 2019, 9:54 AM
ahiemstra edited the summary of this revision. (Show Details)Dec 13 2019, 9:57 AM
mart accepted this revision.Dec 13 2019, 10:03 AM
mart added a subscriber: mart.
mart added inline comments.
src/controls/Action.qml
151

@since 2.12
@since 5.65

This revision is now accepted and ready to land.Dec 13 2019, 10:03 AM
ahiemstra updated this revision to Diff 71418.Dec 13 2019, 10:13 AM
  • Add missing @since
This revision was automatically updated to reflect the committed changes.