summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2014-08-09 14:13:00 (GMT)
committerFrederik Gladhorn <frederik.gladhorn@digia.com>2014-08-09 14:16:32 (GMT)
commit643026fa650e07c7123ded900692275f625fb714 (patch)
tree380142288bec0dab9c226aee36474b7c05a4f3d2
parenta3fb02b881d4980206a28d84db019ca0e6ee450a (diff)
Disable plugins for now
-rw-r--r--core/document.cpp28
1 files changed, 15 insertions, 13 deletions
diff --git a/core/document.cpp b/core/document.cpp
index 44b1286..11e0e56 100644
--- a/core/document.cpp
+++ b/core/document.cpp
@@ -816,19 +816,21 @@ bool DocumentPrivate::openRelativeFile( const QString & fileName )
Generator * DocumentPrivate::loadGeneratorLibrary( const KService::Ptr &service )
{
- KPluginFactory *factory = KPluginLoader( service->library() ).factory();
- if ( !factory )
- {
- kWarning(OkularDebug).nospace() << "Invalid plugin factory for " << service->library() << "!";
- return 0;
- }
- Generator * generator = factory->create< Okular::Generator >( service->pluginKeyword(), 0 );
- GeneratorInfo info( factory->componentData() );
- info.generator = generator;
- if ( info.data.isValid() && info.data.aboutData() )
- info.catalogName = info.data.aboutData()->catalogName();
- m_loadedGenerators.insert( service->name(), info );
- return generator;
+#pragma message("KF5 FIXME DocumentPrivate::loadGeneratorLibrary is disabled")
+// KPluginFactory *factory = KPluginLoader( service->library() ).factory();
+// if ( !factory )
+// {
+// kWarning(OkularDebug).nospace() << "Invalid plugin factory for " << service->library() << "!";
+// return 0;
+// }
+// Generator * generator = factory->create< Okular::Generator >( service->pluginKeyword(), 0 );
+// GeneratorInfo info( factory->componentData() );
+// info.generator = generator;
+// if ( info.data.isValid() && info.data.aboutData() )
+// info.catalogName = info.data.aboutData()->catalogName();
+// m_loadedGenerators.insert( service->name(), info );
+// return generator;
+ return 0;
}
void DocumentPrivate::loadAllGeneratorLibraries()