allow to set custom icon for the left drawer handle
ClosedPublic

Authored by camiloh on Aug 14 2019, 3:37 PM.

Details

Summary

it allows to set a icon to the globaldrawer handle, for that both close and open handle icons need to be set

FEATURE: 405598
FIXED-IN: 5.62

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.
camiloh created this revision.Aug 14 2019, 3:37 PM
Restricted Application added a project: Kirigami. · View Herald TranscriptAug 14 2019, 3:37 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
camiloh requested review of this revision.Aug 14 2019, 3:37 PM
camiloh updated this revision to Diff 63738.Aug 14 2019, 3:38 PM

add default handle icon props to null

mart added inline comments.Aug 14 2019, 3:51 PM
src/controls/OverlayDrawer.qml
110–111

you can write it more compact and avoid code duplication, you can do:

if (root.handleClosedIcon.source && root.handleOpenIcon.source) {

return Qt.resolvedUrl("templates/private/GenericDrawerIcon.qml");

} else if (edge ==Qt.LeftEdge ) {

return Qt.resolvedUrl("templates/private/MenuIcon.qml");

} else if()...
....}

110–111

also, coding style
spaces between if an ( and between ) and {

if () {
}

ngraham edited the summary of this revision. (Show Details)Aug 14 2019, 3:52 PM
camiloh updated this revision to Diff 63740.Aug 14 2019, 4:13 PM

more compact code and fix coding style spaces

camiloh updated this revision to Diff 63742.Aug 14 2019, 4:15 PM

code style spaces

camiloh marked 2 inline comments as done.Aug 14 2019, 4:15 PM

Needs moar @since 5.62

Needs moar @since 5.62

where ?

On the new public properties

mart accepted this revision.Aug 14 2019, 4:58 PM

it's ok, doesn't add public properties

This revision is now accepted and ready to land.Aug 14 2019, 4:58 PM
This revision was automatically updated to reflect the committed changes.