diff options
author | Andras Becsi <andras.becsi@theqtcompany.com> | 2015-01-19 13:27:41 +0100 |
---|---|---|
committer | Andras Becsi <andras.becsi@theqtcompany.com> | 2015-01-20 11:31:02 +0100 |
commit | 38f58ee4693272ca8e206dac8b484d012b683ebf (patch) | |
tree | 929694adb94c960cf64a0fca18934aa17629c3cf /src/webengine/api/qquickwebenginedownloaditem.cpp | |
parent | 43905f3a41d2ce419fe6c1558fda6e90011802b6 (diff) |
Add DownloadItemInfo to BrowserContextAdapterClient
This extends the carried information from Chromium's content::DownloadItem
with url, totalBytes and receivedBytes in preparation of adding a Widget
API for downloads. DownloadItemInfo struct is now constructed to carry
information about individual downloads from the content layer to the
Qt API layer.
Change-Id: I3ee7aea02b74994e612e1b3709195776d5e7570b
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Diffstat (limited to 'src/webengine/api/qquickwebenginedownloaditem.cpp')
-rw-r--r-- | src/webengine/api/qquickwebenginedownloaditem.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/webengine/api/qquickwebenginedownloaditem.cpp b/src/webengine/api/qquickwebenginedownloaditem.cpp index 729cb0d3f..967638b7e 100644 --- a/src/webengine/api/qquickwebenginedownloaditem.cpp +++ b/src/webengine/api/qquickwebenginedownloaditem.cpp @@ -50,8 +50,7 @@ QQuickWebEngineDownloadItemPrivate::QQuickWebEngineDownloadItemPrivate(QQuickWeb QQuickWebEngineDownloadItemPrivate::~QQuickWebEngineDownloadItemPrivate() { - Q_Q(QQuickWebEngineDownloadItem); - q->cancel(); + profile->downloadDestroyed(downloadId); } void QQuickWebEngineDownloadItemPrivate::update(QQuickWebEngineDownloadItem::DownloadState state, int progress) |