diff options
-rw-r--r-- | src/clicktoflash.cpp | 17 | ||||
-rw-r--r-- | src/clicktoflash.h | 2 | ||||
-rw-r--r-- | src/webpluginfactory.cpp | 2 |
3 files changed, 6 insertions, 15 deletions
diff --git a/src/clicktoflash.cpp b/src/clicktoflash.cpp index 9c11dc57..1fd36e4c 100644 --- a/src/clicktoflash.cpp +++ b/src/clicktoflash.cpp @@ -28,25 +28,19 @@ #include "clicktoflash.h" -#include <KLocalizedString> - -#include <QFile> -#include <QMenu> #include <QWebFrame> #include <QWebView> #include <QWebElement> #include <QHBoxLayout> -#include <QContextMenuEvent> +#include <QToolButton> + +#include <KLocalizedString> -#include <KMenu> -#include <KDebug> ClickToFlash::ClickToFlash(QUrl pluginUrl, QWidget *parent) : QWidget(parent) , m_url(pluginUrl) { - - kDebug() << "creating clicktoflash"; QHBoxLayout *l = new QHBoxLayout(this); setLayout(l); @@ -61,9 +55,7 @@ ClickToFlash::ClickToFlash(QUrl pluginUrl, QWidget *parent) void ClickToFlash::load() -{ - //bool loadAll = true; - +{ QWidget *parent = parentWidget(); QWebView *view = 0; while (parent) @@ -115,7 +107,6 @@ void ClickToFlash::load() if(isRightElement) { - kDebug() << "called"; QWebElement substitute = element.clone(); emit signalLoadClickToFlash(true); element.replace(substitute); diff --git a/src/clicktoflash.h b/src/clicktoflash.h index 35c661d4..a55ecbcc 100644 --- a/src/clicktoflash.h +++ b/src/clicktoflash.h @@ -30,9 +30,9 @@ #define CLICKTOFLASH_H #include <QWidget> -#include <QToolButton> #include <QUrl> + class WebPluginFactory; class ClickToFlash : public QWidget diff --git a/src/webpluginfactory.cpp b/src/webpluginfactory.cpp index d1c1ccbe..aec4e18d 100644 --- a/src/webpluginfactory.cpp +++ b/src/webpluginfactory.cpp @@ -93,7 +93,7 @@ QObject *WebPluginFactory::create(const QString &mimeType, } if(mimeType == QString("application/x-shockwave-flash") - && !loadClickToFlash) // the button wasn't clicked + && !loadClickToFlash) { ClickToFlash* ctf = new ClickToFlash(url); connect(ctf, SIGNAL(signalLoadClickToFlash(bool)), this, SLOT(setLoadClickToFlash(bool))); |