From 682a5d24256c920d30c61cef3529f6323f21aafa Mon Sep 17 00:00:00 2001 From: Benjamin Poulain Date: Sat, 13 Nov 2010 16:27:54 +0100 Subject: 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 --- src/webview.cpp | 5 ----- 1 file changed, 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(); -- cgit v1.2.1