summaryrefslogtreecommitdiff
path: root/src/webpluginfactory.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-17 02:39:24 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-10-19 11:41:45 +0200
commit4d8d9d6e4eb149b46af315269e9578eb6bbfc241 (patch)
tree363308f6dc37c843b371ca95cde40b05e0033ecf /src/webpluginfactory.cpp
parentMerge commit 'refs/merge-requests/1842' of git://gitorious.org/rekonq/mainlin... (diff)
downloadrekonq-4d8d9d6e4eb149b46af315269e9578eb6bbfc241.tar.xz
STEP 1
creating a new Preview Image Object, based on QWidget and containing the pixmap AND the url
Diffstat (limited to 'src/webpluginfactory.cpp')
-rw-r--r--src/webpluginfactory.cpp6
1 files changed, 5 insertions, 1 deletions
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