summaryrefslogtreecommitdiff
path: root/src/clicktoflash.cpp
diff options
context:
space:
mode:
authormatgic78 <matgic78@gmail.com>2009-11-25 19:11:40 +0100
committermatgic78 <matgic78@gmail.com>2009-11-27 16:11:58 +0100
commitfb6097991a4b5e166447150884d07667adba169b (patch)
treeadd1a793a1d87ab7147d50e1c6fdef12fe3f1463 /src/clicktoflash.cpp
parentclicktoflash : cleanup (diff)
downloadrekonq-fb6097991a4b5e166447150884d07667adba169b.tar.xz
clicktoflash : more cleanup
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);