diff options
Diffstat (limited to 'src/webpluginfactory.cpp')
-rw-r--r-- | src/webpluginfactory.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/webpluginfactory.cpp b/src/webpluginfactory.cpp index 9d7755c5..1e599327 100644 --- a/src/webpluginfactory.cpp +++ b/src/webpluginfactory.cpp @@ -53,14 +53,20 @@ QObject *WebPluginFactory::create(const QString &mimeType, kDebug() << "loading mimeType: " << mimeType; if(mimeType == QString("application/image-preview") ) - { + { + QString url, pos; for(int i = 0; i<argumentNames.count(); ++i) { if(argumentNames.at(i) == QString("url")) { - return new PreviewImage( argumentValues.at(i) ); + url = argumentValues.at(i); + } + if(argumentNames.at(i) == QString("position")) + { + pos = argumentValues.at(i); } } + return new PreviewImage(url, pos); } kDebug() << "No plugins found for" << mimeType; |