diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-11-10 15:20:49 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-11-10 15:20:49 +0100 |
commit | 64cac4862842c7efa2dc7591ab5b672255e49e4c (patch) | |
tree | c0ea60adb6761b738315a04d82008c8c15f15f27 /src/webpage.cpp | |
parent | fixing new mainWindow() behaviour, porting functions calling it (diff) | |
download | rekonq-64cac4862842c7efa2dc7591ab5b672255e49e4c.tar.xz |
(BIG commit) API change
I fixed rekonq API removing all slotName call switching to
a proper getter call (so, name() functions)
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r-- | src/webpage.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp index 54b28e74..cc003bfb 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -78,8 +78,8 @@ WebPage::WebPage(QObject *parent) setNetworkAccessManager(Application::networkAccessManager()); connect(networkAccessManager(), SIGNAL(finished(QNetworkReply*)), this, SLOT(manageNetworkErrors(QNetworkReply*))); - connect(this, SIGNAL(downloadRequested(const QNetworkRequest &)), this, SLOT(slotDownloadRequested(const QNetworkRequest &))); - connect(this, SIGNAL(unsupportedContent(QNetworkReply *)), this, SLOT(slotHandleUnsupportedContent(QNetworkReply *))); + connect(this, SIGNAL(downloadRequested(const QNetworkRequest &)), this, SLOT(downloadRequested(const QNetworkRequest &))); + connect(this, SIGNAL(unsupportedContent(QNetworkReply *)), this, SLOT(handleUnsupportedContent(QNetworkReply *))); } @@ -155,7 +155,7 @@ WebPage *WebPage::newWindow(WebWindowType type) } -void WebPage::slotHandleUnsupportedContent(QNetworkReply *reply) +void WebPage::handleUnsupportedContent(QNetworkReply *reply) { if (reply->error() == QNetworkReply::NoError) { @@ -166,14 +166,14 @@ void WebPage::slotHandleUnsupportedContent(QNetworkReply *reply) if( offer.isNull() ) // no service can handle this. We can just download it.. { - slotDownloadRequested(reply->request()); + downloadRequested(reply->request()); } else { switch ( KParts::BrowserRun::askSave( url, offer, mimetype, filename ) ) { case KParts::BrowserRun::Save: - slotDownloadRequested(reply->request()); + downloadRequested(reply->request()); return; case KParts::BrowserRun::Cancel: return; @@ -263,7 +263,7 @@ QString WebPage::errorPage(QNetworkReply *reply) // TODO FIXME: sometimes url.fileName() fails to retrieve url file name -void WebPage::slotDownloadRequested(const QNetworkRequest &request) +void WebPage::downloadRequested(const QNetworkRequest &request) { const KUrl url(request.url()); |