diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-06-03 18:20:35 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-06-03 18:20:35 +0200 |
commit | 34c581e7e382084e9273b6c3b8762b36d527d4aa (patch) | |
tree | af494bb421e86f7d0a1ec4c7c8248af340c2c58b /src/newtabpage.cpp | |
parent | Code janitoring (diff) | |
parent | Last (diff) | |
download | rekonq-34c581e7e382084e9273b6c3b8762b36d527d4aa.tar.xz |
Merge branch 'DownloadManager'
Diffstat (limited to 'src/newtabpage.cpp')
-rw-r--r-- | src/newtabpage.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/newtabpage.cpp b/src/newtabpage.cpp index 1dd8b462..940e2c4f 100644 --- a/src/newtabpage.cpp +++ b/src/newtabpage.cpp @@ -35,6 +35,7 @@ // Local Includes #include "application.h" #include "bookmarkprovider.h" +#include "downloadmanager.h" #include "historymodels.h" #include "mainview.h" #include "mainwindow.h" @@ -560,7 +561,7 @@ void NewTabPage::downloadsPage() KIconLoader::Toolbar); m_root.document().findFirst(QL1S("#actions")).appendInside(clearData); - DownloadList list = rApp->downloads(); + DownloadList list = rApp->downloadManager()->downloads(); if (list.isEmpty()) { @@ -569,14 +570,14 @@ void NewTabPage::downloadsPage() return; } - foreach(const DownloadItem &item, list) + foreach(DownloadItem *item, list) { m_root.prependInside(markup(QL1S("div"))); QWebElement div = m_root.firstChild(); div.addClass(QL1S("download")); - KUrl u = KUrl(item.destUrlString); + KUrl u = KUrl(item->destinationUrl()); QString fName = u.fileName(); QString dir = QL1S("file://") + u.directory(); QString file = dir + QL1C('/') + fName; @@ -589,11 +590,11 @@ void NewTabPage::downloadsPage() div.appendInside(QL1S("<strong>") + fName + QL1S("</strong>")); div.appendInside(QL1S(" - ")); - QString date = KGlobal::locale()->formatDateTime(item.dateTime, KLocale::FancyLongDate); + QString date = KGlobal::locale()->formatDateTime(item->dateTime(), KLocale::FancyLongDate); div.appendInside(QL1S("<em>") + date + QL1S("</em>")); div.appendInside(QL1S("<br />")); - div.appendInside(QL1S("<a href=") + item.srcUrlString + QL1C('>') + item.srcUrlString + QL1S("</a>")); + div.appendInside(QL1S("<a href=") + item->originUrl() + QL1C('>') + item->originUrl() + QL1S("</a>")); div.appendInside(QL1S("<br />")); div.appendInside(markup(QL1S("a"))); |