If there are no metadata, showing "by Unknown" is a bit strange and
serves not much purpose. So let it show only the filename when no
metadata available.
REVIEW: 122622
Do not bind the image's sourceSize to the root item's size since that will reload the image
immediately whenever the size changes. Instead, wait 1 second and then gradually fade to the
new size.
REVIEW: 121294
QQC.ScrollView tries hard to set interactive=false on the
flickable item if the system has no touchscreen, which
disables GridView's keyPressEvent handling.
On the flip side the GridView code doesn't handle Home/End,
while this does.
The GridView needs to receive focus for keyboard navigation. Also, make
sure that we're not changing the current wallpaper on deselection, this
might happen when the currentIndex is changed through the keyboard.
- Minimize overdraw by showing the color Rectangle only if it would be visible
- Use an Animator for the image transition and defer animation until image is loaded
(-> no more stuttering when choosing a heavy wallpaper such as the Plasma Next one)
REVIEW: 121162
The parent item has opacity == 0.8, which means both the preview icon
and the actual preview are sligtly transparent and the icon bleeds
through; let's hide it completely
BUG: 339628
Reviewed-by: Bhushan Shah
wallpaper.configuration.Image is empty at first start, but the
image wallpaper object has the proper default
BUG:339414
(cherry picked from commit 3b2d770df4)
* when dropped w/out a url scheme, check if it is an abs path
* set the preferred file in the package itself for single files
* don't try and find a best fit in the wallpaper plugin if the package
has already set a prefrred image
this will allow it to be shared by other plugins out there. it does mean
sacrificing the generic "find best paper size" functionality which was
tightly bound to the image wallpaper (in plasma4, this was Plasma::Wallpaper,
so acceptable). Finding the best image is now left up to the plugin,
though I imagine that other plugins will want this eventually as well
and it will find its way into a library somewhere or else just be
copy-and-pasted a lot.
This produces a warning, from the looks of it it's a left-over from a
different time/space continuum, and I wouldn't know why it should be
needed with the other anchors in place. Kill it with fire.