summaryrefslogtreecommitdiff
path: root/src/webpluginfactory.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-01 12:02:30 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-10-01 12:02:30 +0200
commit01e5c03236fa589b719544f478ea036b8b1e2ee7 (patch)
treef13f954c326113b2aa92f172f97cfd4c05f7fac2 /src/webpluginfactory.cpp
parentSetting session and request metadata about ssl navigation (diff)
downloadrekonq-01e5c03236fa589b719544f478ea036b8b1e2ee7.tar.xz
Code fixes in the homepage
also changed history && bookmarks layout (we need just icons there)
Diffstat (limited to 'src/webpluginfactory.cpp')
-rw-r--r--src/webpluginfactory.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/webpluginfactory.cpp b/src/webpluginfactory.cpp
index 27799ca6..5d99ff6d 100644
--- a/src/webpluginfactory.cpp
+++ b/src/webpluginfactory.cpp
@@ -50,22 +50,14 @@ QObject *WebPluginFactory::create(const QString &mimeType,
const QStringList &argumentNames,
const QStringList &argumentValues) const
{
- Q_UNUSED(url)
+ Q_UNUSED(argumentNames)
+ Q_UNUSED(argumentValues)
kDebug() << "loading mimeType: " << mimeType;
if(mimeType == QString("application/image-preview") )
{
- QString imageUrl;
- for(int i = 0; i<argumentNames.count(); ++i)
- {
- if(argumentNames.at(i) == QString("url"))
- {
- imageUrl = argumentValues.at(i);
- break;
- }
- }
- return new PreviewImage(imageUrl);
+ return new PreviewImage(url);
}
// this let QtWebKit using builtin plugins