summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathaniel Graham <[email protected]>2017-10-17 16:57:40 -0600
committerNathaniel Graham <[email protected]>2017-10-20 20:52:59 -0600
commit76375dcd7c8a47c4c3637d86f4cedd01aaa50920 (patch)
treeee1deadcad2e629e047114229a0d55f78a8bb79b
parent2bbce65d41a23a6adf6e2cc182f7566f22ee033b (diff)
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
-rw-r--r--thumbnail/thumbnail.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/thumbnail/thumbnail.cpp b/thumbnail/thumbnail.cpp
index f650891..fceb7f8 100644
--- a/thumbnail/thumbnail.cpp
+++ b/thumbnail/thumbnail.cpp
@@ -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;