diff options
author | matgic78 <matgic78@gmail.com> | 2009-11-22 14:53:33 +0100 |
---|---|---|
committer | matgic78 <matgic78@gmail.com> | 2009-11-27 16:11:57 +0100 |
commit | 19d7611101253c27a841480fca55f1bc5cd767b6 (patch) | |
tree | 0ae960f684382824291b474afa3e2c0bfb8d55ee /src/clicktoflash.h | |
parent | ClickToFlash : first step (diff) | |
download | rekonq-19d7611101253c27a841480fca55f1bc5cd767b6.tar.xz |
clicktoflash : step 2 make it work when there are more than one plugin in the same page
Diffstat (limited to 'src/clicktoflash.h')
-rw-r--r-- | src/clicktoflash.h | 8 |
1 files changed, 6 insertions, 2 deletions
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 <QWidget> #include <QToolButton> +#include <QUrl> 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 |