Allow OverlaySheet clients to omit the built-in close button

Authored by ngraham on Mar 9 2018, 11:43 PM.

Description

Allow OverlaySheet clients to omit the built-in close button

Summary: Most of the time we want an OverlaySheet to draw a close button so its clients don't have to. But sometimes clients want to draw their own close buttons, for example to use the OverlaySheet as a dialog box with a Cancel button (which we do in Discover). In these circumstances, we don't need OverlaySheet to draw its own close button; this patch makes that possible.

Test Plan:
Tested in Discover after applying the patch and adding showCloseButton: false to DiscoverWindow.qml's proceedDialog:

Reviewers: mart, Kirigami

Reviewed By: mart, Kirigami

Subscribers: plasma-devel, apol

Tags: Kirigami

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

Details

Committed
ngrahamMar 19 2018, 4:23 PM
Reviewer
Kirigami
Differential Revision
D11197: Allow OverlaySheet clients to omit the built-in close button
Parents
R169:a796e2e0be30: Components for Cards
Branches
Unknown
Tags
Unknown