summaryrefslogtreecommitdiffstats
path: root/examples/webenginewidgets/browser/tabwidget.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-05-08 12:58:28 +0200
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-05-11 11:54:28 +0000
commit4db8c2c92ae8bc722de70e4bd317dce17dea2f74 (patch)
tree3462ae22be4a7cb107e46f2b050649a8cddbf73f /examples/webenginewidgets/browser/tabwidget.h
parent76a990cfa3409214530e77d132cdefd9e96685f9 (diff)
Reintroduce private browsing mode for example browser
Uses QWebEngineProfile to support private browsing mode. Change-Id: I78fa712d2425eb2df519594ee3fa5639bbcbebf6 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
Diffstat (limited to 'examples/webenginewidgets/browser/tabwidget.h')
-rw-r--r--examples/webenginewidgets/browser/tabwidget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/webenginewidgets/browser/tabwidget.h b/examples/webenginewidgets/browser/tabwidget.h
index 74e98f46c..5d7f1e2c5 100644
--- a/examples/webenginewidgets/browser/tabwidget.h
+++ b/examples/webenginewidgets/browser/tabwidget.h
@@ -48,6 +48,7 @@
QT_BEGIN_NAMESPACE
class QWebEngineDownloadItem;
+class QWebEngineProfile;
QT_END_NAMESPACE
/*
@@ -182,6 +183,8 @@ public:
QByteArray saveState() const;
bool restoreState(const QByteArray &state);
+ void setProfile(QWebEngineProfile *profile);
+
protected:
void mouseDoubleClickEvent(QMouseEvent *event);
void contextMenuEvent(QContextMenuEvent *event);
@@ -226,6 +229,7 @@ private:
QCompleter *m_lineEditCompleter;
QStackedWidget *m_lineEdits;
TabBar *m_tabBar;
+ QWebEngineProfile *m_profile;
};
#endif // TABWIDGET_H