summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Poulain <ikipou@gmail.com>2010-11-13 16:27:54 +0100
committerBenjamin Poulain <benjamin.poulain@nokia.com>2010-11-20 18:52:42 +0100
commit682a5d24256c920d30c61cef3529f6323f21aafa (patch)
tree11baf25ed94f24adaf07970731b32afa41cdc0b5
parentMove download handling from WebView to WebPage (diff)
downloadrekonq-682a5d24256c920d30c61cef3529f6323f21aafa.tar.xz
Use QObject cleaning for the destruction of WebView children
The destructor of QObject already destroy the children and disconnect the object. To reduce code complexity of WebView, we rely on this mechanism instead of doing manually. Reviewed by: Pierre Rossi Reviewed by: Andrea Diamantini
-rw-r--r--src/webview.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index 980060ef..04677f55 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -114,13 +114,8 @@ WebView::WebView(QWidget* parent)
WebView::~WebView()
{
- delete m_autoScrollTimer;
-
if (m_smoothScrolling)
stopScrolling();
- delete m_smoothScrollTimer;
-
- disconnect();
WebPage* p = page();