From 4d8d9d6e4eb149b46af315269e9578eb6bbfc241 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sat, 17 Oct 2009 02:39:24 +0200 Subject: STEP 1 creating a new Preview Image Object, based on QWidget and containing the pixmap AND the url --- src/webpluginfactory.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/webpluginfactory.cpp') diff --git a/src/webpluginfactory.cpp b/src/webpluginfactory.cpp index b9d50697..3daffbb6 100644 --- a/src/webpluginfactory.cpp +++ b/src/webpluginfactory.cpp @@ -57,10 +57,14 @@ QObject *WebPluginFactory::create(const QString &mimeType, if(mimeType == QString("application/image-preview") ) { + QString title; int number = -1; bool isFavorite = false; int i; + i = argumentNames.indexOf( QString("title") ); + if(i > -1) + title = argumentValues.at(i); i = argumentNames.indexOf( QString("isFavorite") ); if(i > -1) isFavorite = true; @@ -68,7 +72,7 @@ QObject *WebPluginFactory::create(const QString &mimeType, if(i > -1) number = argumentValues.at(i).toInt(); - return new PreviewImage(url, number, isFavorite); + return new PreviewImage(url, title, number, isFavorite); } // this let QtWebKit using builtin plugins -- cgit v1.2.1