summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 9b04cbbd..8180b1e1 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -36,6 +36,7 @@
#include "webview.h"
#include "mainview.h"
#include "bookmarks.h"
+#include "download.h"
// KDE Includes
#include <KUrl>
@@ -51,6 +52,7 @@
#include <KMenu>
#include <KGlobalSettings>
#include <KPushButton>
+#include <KTemporaryFile>
// Qt Includes
@@ -428,9 +430,7 @@ void MainWindow::slotOpenLocation()
void MainWindow::slotFileSaveAs()
{
KUrl srcUrl = currentTab()->url();
- QString destPath = KFileDialog::getSaveFileName();
- KUrl destUrl = KUrl(destPath);
- Application::instance()->downloadUrl(srcUrl, destUrl);
+ Application::downloadManager()->newDownload(srcUrl);
}
@@ -492,6 +492,7 @@ void MainWindow::slotFileOpen()
}
+// TODO: Port to KDE
void MainWindow::slotFilePrintPreview()
{
if (!currentTab())
@@ -510,6 +511,7 @@ void MainWindow::slotFilePrint()
}
+// TODO: Port to KDE
void MainWindow::printRequested(QWebFrame *frame)
{
QPrinter printer;
@@ -684,8 +686,6 @@ void MainWindow::slotViewPageSource()
KRun::runUrl(url, QLatin1String("text/plain"), this, isTempFile);
}
-}
-
void MainWindow::slotHome()
{