diff options
author | Kai Koehne <kai.koehne@qt.io> | 2018-03-01 13:03:03 +0100 |
---|---|---|
committer | Kai Koehne <kai.koehne@qt.io> | 2018-04-13 06:53:45 +0000 |
commit | 058ca5807f88ac6c5fc67db483e99427a7e4abfa (patch) | |
tree | 8075e95fe04c673d8df9e3b2c90a3ee9a249ed83 | |
parent | 0841e85172a76766301454fc407fdf0bebf047f4 (diff) | |
download | qtwebengine-058ca5807f88ac6c5fc67db483e99427a7e4abfa.tar.gz |
Use Q_DECLARE_OPERATOR_FOR_FLAGS in public API
This allows writing something like
FindFlags x = FindBackWard | FindCaseSensitively
Change-Id: I88f8465dd64482ad871530fbb6d6351895fe6a3a
Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r-- | src/webenginewidgets/api/qwebenginecontextmenudata.h | 3 | ||||
-rw-r--r-- | src/webenginewidgets/api/qwebenginepage.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/webenginewidgets/api/qwebenginecontextmenudata.h b/src/webenginewidgets/api/qwebenginecontextmenudata.h index 24fbd5c09..5834df31a 100644 --- a/src/webenginewidgets/api/qwebenginecontextmenudata.h +++ b/src/webenginewidgets/api/qwebenginecontextmenudata.h @@ -125,6 +125,9 @@ private: friend class QWebEnginePage; }; +Q_DECLARE_OPERATORS_FOR_FLAGS(QWebEngineContextMenuData::MediaFlags) +Q_DECLARE_OPERATORS_FOR_FLAGS(QWebEngineContextMenuData::EditFlags) + QT_END_NAMESPACE #endif // QWEBENGINECONTEXTDATA_H diff --git a/src/webenginewidgets/api/qwebenginepage.h b/src/webenginewidgets/api/qwebenginepage.h index f81ba7373..b2aca9030 100644 --- a/src/webenginewidgets/api/qwebenginepage.h +++ b/src/webenginewidgets/api/qwebenginepage.h @@ -364,6 +364,7 @@ private: #endif // QT_NO_ACCESSIBILITY }; +Q_DECLARE_OPERATORS_FOR_FLAGS(QWebEnginePage::FindFlags) QT_END_NAMESPACE |