summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-08-13 13:10:14 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-08-13 13:10:14 +0200
commitdf9f5b4f5219ddaba6321660086fa274a5249bd2 (patch)
treeb8793f066ca1108e4970c8f7d8e7fa38300dd3c1 /src
parentJust downloading not handled files (diff)
downloadrekonq-df9f5b4f5219ddaba6321660086fa274a5249bd2.tar.xz
Removed unuseful (?) WebPage::chooseFile method.
Some TODO comments added.
Diffstat (limited to 'src')
-rw-r--r--src/webpage.cpp7
-rw-r--r--src/webpage.h3
2 files changed, 1 insertions, 9 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp
index 45cf82d7..b289c97f 100644
--- a/src/webpage.cpp
+++ b/src/webpage.cpp
@@ -260,6 +260,7 @@ QObject *WebPage::createPlugin(const QString &classId, const QUrl &url, const QS
}
+// FIXME: sometimes url.fileName() fails to retrieve url file name
void WebPage::slotDownloadRequested(const QNetworkRequest &request)
{
const KUrl url(request.url());
@@ -273,9 +274,3 @@ void WebPage::slotDownloadRequested(const QNetworkRequest &request)
job->addMetaData("cache", "cache"); // Use entry from cache if available.
job->uiDelegate()->setAutoErrorHandlingEnabled(true);
}
-
-
-QString WebPage::chooseFile(QWebFrame *frame, const QString &suggestedFile)
-{
- return KFileDialog::getOpenFileName(suggestedFile, QString(), frame->page()->view());
-}
diff --git a/src/webpage.h b/src/webpage.h
index a000a663..d1642966 100644
--- a/src/webpage.h
+++ b/src/webpage.h
@@ -62,9 +62,6 @@ protected:
const QNetworkRequest &request,
NavigationType type);
- QString chooseFile(QWebFrame *frame,
- const QString &suggestedFile);
-
void javaScriptAlert(QWebFrame *frame,
const QString &msg);