aboutsummaryrefslogtreecommitdiffstats
path: root/examples/webenginewidgets/tabbedbrowser/webengineview.py
diff options
context:
space:
mode:
authorCristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2020-03-30 10:07:56 +0200
committerCristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2020-03-30 10:07:56 +0200
commitd2be09eef06241cd4c9eb7a0ca1a993dc2355f02 (patch)
tree4cd15a74c0629e76a41b30d2e02d22e998fb509d /examples/webenginewidgets/tabbedbrowser/webengineview.py
parentad73193e99fef8f5d1bcf095075596dca88949c1 (diff)
parentd47fb98e443e3ac5cb18850b2551143c713917f0 (diff)
Merge branch '5.14' into 5.14.2v5.14.2
Diffstat (limited to 'examples/webenginewidgets/tabbedbrowser/webengineview.py')
-rw-r--r--examples/webenginewidgets/tabbedbrowser/webengineview.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/examples/webenginewidgets/tabbedbrowser/webengineview.py b/examples/webenginewidgets/tabbedbrowser/webengineview.py
index 3b24df001..81b156f93 100644
--- a/examples/webenginewidgets/tabbedbrowser/webengineview.py
+++ b/examples/webenginewidgets/tabbedbrowser/webengineview.py
@@ -43,10 +43,11 @@ from PySide2.QtWebEngineWidgets import QWebEnginePage, QWebEngineView
from PySide2 import QtCore
_web_actions = [QWebEnginePage.Back, QWebEnginePage.Forward,
- QWebEnginePage.Reload,
- QWebEnginePage.Undo, QWebEnginePage.Redo,
- QWebEnginePage.Cut, QWebEnginePage.Copy,
- QWebEnginePage.Paste, QWebEnginePage.SelectAll]
+ QWebEnginePage.Reload,
+ QWebEnginePage.Undo, QWebEnginePage.Redo,
+ QWebEnginePage.Cut, QWebEnginePage.Copy,
+ QWebEnginePage.Paste, QWebEnginePage.SelectAll]
+
class WebEngineView(QWebEngineView):
@@ -79,7 +80,8 @@ class WebEngineView(QWebEngineView):
return self.page().action(web_action).isEnabled()
def createWindow(self, window_type):
- if window_type == QWebEnginePage.WebBrowserTab or window_type == QWebEnginePage.WebBrowserBackgroundTab:
+ if (window_type == QWebEnginePage.WebBrowserTab or
+ window_type == QWebEnginePage.WebBrowserBackgroundTab):
return self._tab_factory_func()
return self._window_factory_func()