Diffusion KIO 3042e12296db

KIO::PreviewJob::defaultPlugins() function

Authored by ngraham on Oct 17 2017, 6:52 PM.

Description

KIO::PreviewJob::defaultPlugins() function

Summary:
Adds a new KIO::PreviewJob::defaultPlugins() function that can lets clients get a list of thumbnail plugins that should be enabled by default (disabled plugins can still be enabled via the GUI in Dolphin).

The function returns a QStringList of all available plugins minus ones specified in an internal blacklist, because some plugins may not be useful enough to enable by default, but also are not useless enough to remove. Currently the only blacklisted plugin is the .txt file previewer, because at most (but not all) icon sizes, the preview is unreadably small and not very useful.

This supports D7440 and D8352.

Test Plan: Tested in KDE Neon. Function is available and works as expected.

Reviewers: Frameworks, broulik, Dolphin, markg

Reviewed By: markg

Subscribers: markg, anthonyfieroni, elvisangelaccio, Frameworks

Tags: Frameworks

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

Details

Committed
ngrahamOct 20 2017, 12:55 PM
Reviewer
markg
Differential Revision
D8347: KIO::PreviewJob::defaultPlugins() function
Parents
R241:9192e9e74a6c: SVN_SILENT made messages (.desktop file) - always resolve ours
Branches
Unknown
Tags
Unknown