summaryrefslogtreecommitdiffstats
path: root/examples/webenginewidgets/browser/tabwidget.h
diff options
context:
space:
mode:
authorAndras Becsi <andras.becsi@theqtcompany.com>2015-02-02 17:11:51 +0100
committerAndras Becsi <andras.becsi@theqtcompany.com>2015-02-05 16:13:05 +0000
commit0cf3235924e7ea95c5804c807a9ef0e91678c49d (patch)
treee43d0e34366ce6605109af7ab967e3abe6def940 /examples/webenginewidgets/browser/tabwidget.h
parent4ef5831a398280cc26cbf359dcbb9878e77ab7fb (diff)
Revive the widget Browser's DownloadManager
This reenables the widget example Browser's download code by porting it from the QNAM-based QtWebKit API to the new download API of QtWebEngine. Change-Id: I0630c76902fb30c355c774664f0a2005fe29023c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Diffstat (limited to 'examples/webenginewidgets/browser/tabwidget.h')
-rw-r--r--examples/webenginewidgets/browser/tabwidget.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/webenginewidgets/browser/tabwidget.h b/examples/webenginewidgets/browser/tabwidget.h
index 497a2c572..9f2e42d58 100644
--- a/examples/webenginewidgets/browser/tabwidget.h
+++ b/examples/webenginewidgets/browser/tabwidget.h
@@ -45,6 +45,11 @@
#include <QtWidgets/QTabBar>
#include <QtWidgets/QShortcut>
+
+QT_BEGIN_NAMESPACE
+class QWebEngineDownloadItem;
+QT_END_NAMESPACE
+
/*
Tab bar with a few more features such as a context menu and shortcuts
*/
@@ -197,6 +202,7 @@ private slots:
void currentChanged(int index);
void aboutToShowRecentTabsMenu();
void aboutToShowRecentTriggeredAction(QAction *action);
+ void downloadRequested(QWebEngineDownloadItem *download);
void webViewLoadStarted();
void webViewIconChanged();
void webViewTitleChanged(const QString &title);