Commit 76375dcd authored by Nathaniel Graham's avatar Nathaniel Graham

Use KIO::PreviewJob::defaultPlugins()

Summary:
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: markg

Differential Revision: https://phabricator.kde.org/D8352
parent 2bbce65d
......@@ -61,6 +61,7 @@
#include <kio/thumbcreator.h>
#include <kio/thumbsequencecreator.h>
#include <kio/previewjob.h>
#include <iostream>
#include <QDirIterator>
......@@ -662,10 +663,7 @@ bool ThumbnailProtocol::createSubThumbnail(QImage& thumbnail, const QString& fil
{
if (m_enabledPlugins.isEmpty()) {
const KConfigGroup globalConfig(KSharedConfig::openConfig(), "PreviewSettings");
m_enabledPlugins = globalConfig.readEntry("Plugins", QStringList()
<< "imagethumbnail"
<< "jpegthumbnail"
<< "videopreview");
m_enabledPlugins = globalConfig.readEntry("Plugins", KIO::PreviewJob::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