diff options
author | Pierre Rossi <pierre.rossi@digia.com> | 2013-08-28 14:19:14 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-11 14:20:07 +0200 |
commit | 3062467e7ae4ca68377216083e015846b307e5a0 (patch) | |
tree | 13250a49a7c925524a0d50aa807cc229fa95b1d4 /lib/widgets/Api/qwebengineview.h | |
parent | 18e6f0ac27cf53bc21cf8c54887932de116648ff (diff) | |
download | qtwebengine-3062467e7ae4ca68377216083e015846b307e5a0.tar.gz |
Add preliminary context menu support
This is essentially the widgets part, with some tricks to get it to
honor the widget's context menu policy.
It enables c++11 for the widgets library for the convenience of using lambdas,
which admitedly we could do without, but seems reasonable considering our timeline
and the fact that we build chromium that way.
Change-Id: I6a632a78d2aa48fb0dfecfe491e92651d12407db
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Diffstat (limited to 'lib/widgets/Api/qwebengineview.h')
-rw-r--r-- | lib/widgets/Api/qwebengineview.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/widgets/Api/qwebengineview.h b/lib/widgets/Api/qwebengineview.h index c3b3067bc..2c649d46f 100644 --- a/lib/widgets/Api/qwebengineview.h +++ b/lib/widgets/Api/qwebengineview.h @@ -30,6 +30,7 @@ #include <QtWebEngineWidgets/qwebenginepage.h> QT_BEGIN_NAMESPACE +class QContextMenuEvent; class QIcon; class QNetworkRequest; class QPrinter; @@ -129,11 +130,14 @@ Q_SIGNALS: protected: virtual QWebEngineView *createWindow(QWebEnginePage::WebWindowType type); + virtual void contextMenuEvent(QContextMenuEvent*) Q_DECL_OVERRIDE; + virtual bool event(QEvent*) Q_DECL_OVERRIDE; private: Q_DECLARE_PRIVATE(QWebEngineView); friend class QWebEnginePage; + friend class QWebEnginePagePrivate; }; QT_END_NAMESPACE |