diff options
author | Andras Becsi <andras.becsi@theqtcompany.com> | 2015-02-03 16:26:44 +0100 |
---|---|---|
committer | Andras Becsi <andras.becsi@theqtcompany.com> | 2015-02-06 12:02:52 +0000 |
commit | 22f4a67e434703b400ad9ee669f673144e5f33dc (patch) | |
tree | b66fd7c669309712466487724206126db4f88787 /src/core/download_manager_delegate_qt.cpp | |
parent | dd450a1006c6975014f95dcb93395e961945c4f2 (diff) |
Update QML download API to match widgets and add documentation
Rename the download signal to downloadRequested and only start a
download if it has been explicitly accepted by the user, else cancel
it by default.
Replace the downloadPercentage property with totalBytes and receivedBytes
to also give the user information about download size.
Additionally this patch adds missing documentation.
Change-Id: I9d895386cf033f2efffe3ebac6f08f94c6fe0c19
Reviewed-by: Michael BrĂ¼ning <michael.bruning@theqtcompany.com>
Reviewed-by: Jocelyn Turcotte <jturcotte@woboq.com>
Diffstat (limited to 'src/core/download_manager_delegate_qt.cpp')
-rw-r--r-- | src/core/download_manager_delegate_qt.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/core/download_manager_delegate_qt.cpp b/src/core/download_manager_delegate_qt.cpp index 78d5f909a..73a0976da 100644 --- a/src/core/download_manager_delegate_qt.cpp +++ b/src/core/download_manager_delegate_qt.cpp @@ -131,7 +131,6 @@ bool DownloadManagerDelegateQt::DetermineDownloadTarget(content::DownloadItem* i item->GetId(), toQt(item->GetURL()), item->GetState(), - item->PercentComplete(), item->GetTotalBytes(), item->GetReceivedBytes(), suggestedFilePath, @@ -178,7 +177,6 @@ void DownloadManagerDelegateQt::OnDownloadUpdated(content::DownloadItem *downloa download->GetId(), toQt(download->GetURL()), download->GetState(), - download->PercentComplete(), download->GetTotalBytes(), download->GetReceivedBytes(), QString(), |