summaryrefslogtreecommitdiff
path: root/src/clicktoflash.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/clicktoflash.cpp')
-rw-r--r--src/clicktoflash.cpp17
1 files changed, 4 insertions, 13 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);