diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-01-19 02:26:13 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-01-19 02:26:13 +0100 |
commit | 76d30285358bedd8b2fc6caf48d2a871f7546685 (patch) | |
tree | 28ee333ad33eeeb4f6edd9f647702fc2522db122 /src/webview.cpp | |
parent | m_tabWidget --> m_view (diff) | |
download | rekonq-76d30285358bedd8b2fc6caf48d2a871f7546685.tar.xz |
Ported tons of code to KConfigXT. To merge kcfg branch we need just to
port cookie settings..
Diffstat (limited to 'src/webview.cpp')
-rw-r--r-- | src/webview.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/webview.cpp b/src/webview.cpp index df629fc8..adfeab97 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -18,19 +18,27 @@ * * ============================================================ */ +// Local Includes +#include "webview.h" +#include "webview.moc" + +// Auto Includes +#include "rekonq.h" +// Local Includes #include "browserapplication.h" #include "mainwindow.h" #include "mainview.h" #include "cookiejar.h" #include "downloadmanager.h" #include "networkaccessmanager.h" -#include "webview.h" +// KDE Includes #include <KStandardDirs> #include <KDebug> #include <kio/netaccess.h> +// Qt Includes #include <QClipboard> #include <QMenu> #include <QMouseEvent> @@ -297,17 +305,11 @@ void WebView::setStatusBarText(const QString &string) } +// FIXME: use KIO transfer job instead!! void WebView::downloadRequested(const QNetworkRequest &request) { -// BrowserApplication::downloadManager()->download(request); - - // FIXME --- FIXME --- FIXME --- FIXME --- FIXME const KUrl url = KUrl( request.url() ); - - KConfig config("rekonqrc"); - KConfigGroup group = config.group("General"); - QString path = group.readEntry(QString("downloadDir")) + QString("/") + url.fileName(); - + QString path = ReKonfig::downloadDir() + QString("/") + url.fileName(); KIO::NetAccess::download( url , path , this ); } |