From 00332be135592f04c9c72829d7e3be39f8d79b63 Mon Sep 17 00:00:00 2001 From: Benjamin Poulain Date: Sat, 13 Nov 2010 16:24:12 +0100 Subject: Move download handling from WebView to WebPage Handling download is a responsibility of WebPage, the connection to the implementation is better done in WebPage than in WebView. Reviewed by: Pierre Rossi Reviewed by: Andrea Diamantini --- src/webpage.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/webpage.cpp') diff --git a/src/webpage.cpp b/src/webpage.cpp index 2347b6d8..4bbed2f5 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -210,6 +210,7 @@ WebPage::WebPage(QWidget *parent) // ----- last stuffs connect(manager, SIGNAL(finished(QNetworkReply*)), this, SLOT(manageNetworkErrors(QNetworkReply*))); + connect(this, SIGNAL(downloadRequested(const QNetworkRequest &)), this, SLOT(downloadRequest(const QNetworkRequest &))); connect(this, SIGNAL(loadStarted()), this, SLOT(loadStarted())); connect(this, SIGNAL(loadFinished(bool)), this, SLOT(loadFinished(bool))); -- cgit v1.2.1