Review Request: KIO::PreviewJob: Respect the enabled plugins from "PreviewSettings"

Peter Penz peter.penz19 at
Sat Feb 5 19:53:24 GMT 2011

This is an automatically generated e-mail. To reply, visit:

Review request for kdelibs and David Faure.


Currently KIO::PreviewJob respects the settings "MaximumSize" and "MaximumRemoteSize" from the KConfigGroup "PreviewSettings", but completely ignores the "Plugins" settings. Because of this in the following locations the plugins are manually read and passed to KIO::PreviewJob:
- Tooltips in Dolphin/Konqueror
- Information Panel in Dolphin
- KFilePreviewGenerator in kdelibs

Recently it turned out that the file-open-dialog ignores the "Plugins" too. Before adding some code again I've provided this patch for KIO::PreviewJob. Changing the current behavior of KIO::PreviewJob cannot be done, so a new constructor has been added. Following Qt's constructor-pattern the new constructor is quite minimal and setter/getter-methods have been added for the missing parameters.

The changed behavior of the new constructor is that if enabledPlugins is zero the plugins from "PreviewSettings" are used now.

If it is OK to merge this patch, I'd take care to replace the calls to the deprecated API within kdelibs + kdebase.

Also it might be useful to change the implementation to use PreviewJob::ScaleType internally instead of the two bools bScale and bSave (the ScaleType has been introduced because of the KDE5 comment). But I'd do this in a second commit as it won't change any behavior.


  kio/kio/previewjob.cpp 96e5b27 
  kio/kio/previewjob.h b86fc9b 



Temporary adjusted KFilePreviewGenerator for testing.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the kde-core-devel mailing list