From d201abbd56715f53b48b27ccc0f1bf0b346f449e Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 18 Sep 2009 17:21:37 +0200 Subject: It finally works! Need some fixes to be merged.. --- src/webpluginfactory.cpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'src/webpluginfactory.cpp') diff --git a/src/webpluginfactory.cpp b/src/webpluginfactory.cpp index 9ff0011d..9d7755c5 100644 --- a/src/webpluginfactory.cpp +++ b/src/webpluginfactory.cpp @@ -50,19 +50,17 @@ QObject *WebPluginFactory::create(const QString &mimeType, const QStringList &argumentNames, const QStringList &argumentValues) const { + kDebug() << "loading mimeType: " << mimeType; + if(mimeType == QString("application/image-preview") ) { - QString url, fileName; - int i = 0; - Q_FOREACH(const QString &key, argumentNames) + for(int i = 0; i