diff options
Diffstat (limited to 'src/webpluginfactory.cpp')
-rw-r--r-- | src/webpluginfactory.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/webpluginfactory.cpp b/src/webpluginfactory.cpp index 3daffbb6..af799905 100644 --- a/src/webpluginfactory.cpp +++ b/src/webpluginfactory.cpp @@ -38,7 +38,7 @@ WebPluginFactory::WebPluginFactory(QObject *parent) - : QWebPluginFactory(parent) + : KWebPluginFactory(parent) { } @@ -75,16 +75,13 @@ QObject *WebPluginFactory::create(const QString &mimeType, return new PreviewImage(url, title, number, isFavorite); } - // this let QtWebKit using builtin plugins - // to load in example flash contents and so on.. - kDebug() << "No plugins found for" << mimeType << ". Falling back to QtWebKit ones..."; - return 0; + return KWebPluginFactory::create(mimeType, url, argumentNames, argumentValues); } QList<QWebPluginFactory::Plugin> WebPluginFactory::plugins() const { - QList<QWebPluginFactory::Plugin> plugins; + QList<KWebPluginFactory::Plugin> plugins = KWebPluginFactory::plugins(); QWebPluginFactory::Plugin p; p.name = "application/image-preview"; |