[Greeter] Expose wallpaper QML item as "wallpaper" context property
ClosedPublic

Authored by broulik on Apr 26 2017, 3:27 PM.

Details

Summary

This way the look and feel package can access the item and for example reparent it elsewhere for a slide gesture to reveal the password input.

Test Plan

Put something like this in my LockScreenUi

MouseArea {
    id: wallpaperSlider
    width: parent.width
    height: parent.height
    z: 100
    drag.target: this
    ...
}

Binding {
    target: wallpaper
    property: "parent"
    value: wallpaperSlider
}

(Imagine the cursor dragging the picture upwards ;)

Not something I would like on Plasma desktop but certainly interesting for the phone and gives LnF creators more freedom (e.g. in the "K10" package)

Diff Detail

Repository
R133 KScreenLocker
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik created this revision.Apr 26 2017, 3:27 PM
Restricted Application added a project: Plasma. · View Herald TranscriptApr 26 2017, 3:27 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
graesslin accepted this revision.Apr 26 2017, 3:28 PM
This revision is now accepted and ready to land.Apr 26 2017, 3:28 PM
This revision was automatically updated to reflect the committed changes.