From 19d7611101253c27a841480fca55f1bc5cd767b6 Mon Sep 17 00:00:00 2001 From: matgic78 Date: Sun, 22 Nov 2009 14:53:33 +0100 Subject: clicktoflash : step 2 make it work when there are more than one plugin in the same page --- src/clicktoflash.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/clicktoflash.h') diff --git a/src/clicktoflash.h b/src/clicktoflash.h index 382c6001..3660a1f9 100644 --- a/src/clicktoflash.h +++ b/src/clicktoflash.h @@ -31,6 +31,7 @@ #include #include +#include class WebPluginFactory; @@ -38,7 +39,10 @@ class ClickToFlash : public QWidget { Q_OBJECT public: - ClickToFlash(const WebPluginFactory *factory, QWidget *parent = 0); + /** + pluginUrl : used to find the right QWebElement between the ones of the different plugins + */ + ClickToFlash(const WebPluginFactory *factory, QUrl pluginUrl, QWidget *parent = 0); signals: void signalLoadClickToFlash(bool); @@ -52,7 +56,7 @@ private slots: void load(bool loadAll = false); private: - const WebPluginFactory *m_factory; + const QUrl m_url; }; #endif // CLICKTOFLASH_H -- cgit v1.2.1