summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-04-21 11:27:17 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-04-21 11:27:17 +0200
commit8eac211c434358cbe536eb6f1448f1d565a5f26f (patch)
tree379776ba033cbf868d8a66d80b20359d9c19fb4c /src/mainwindow.cpp
parentSimpler MessageBoxs handling.. (diff)
downloadrekonq-8eac211c434358cbe536eb6f1448f1d565a5f26f.tar.xz
Moving new download system to mainline.
I did some changes to fit things as simple as possible. We can obviously improve things in a second moment..
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()
{