Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 8b6c4e39 authored by Nathaniel Graham's avatar Nathaniel Graham

Use KIO::PreviewJob::defaultPlugins()

Use KIO::PreviewJob::defaultPlugins() instead of hardcoding plugin list.

Depends on D8347

Test Plan: Compiles fine in KDE Neon.

Reviewers: #frameworks, broulik, elvisangelaccio, markg

Reviewed By: #frameworks, elvisangelaccio, markg

Differential Revision:
parent d257cf10
......@@ -663,7 +663,14 @@ bool ThumbnailProtocol::createSubThumbnail(QImage& thumbnail, const QString& fil
if (m_enabledPlugins.isEmpty()) {
const KConfigGroup globalConfig(KSharedConfig::openConfig(), "PreviewSettings");
m_enabledPlugins = globalConfig.readEntry("Plugins", KIO::PreviewJob::defaultPlugins());
// We don't have KF5.40 yet; emulate the behavior of KIO::PreviewJob::defaultPlugins()
QStringList defaultPlugins = KIO::PreviewJob::availablePlugins();
m_enabledPlugins = globalConfig.readEntry("Plugins", defaultPlugins);
const QMimeDatabase db;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment