This commit is contained in:
Florian Bruhin 2018-06-11 21:47:38 +02:00
parent 67c67db230
commit ad7e080827
3 changed files with 4 additions and 3 deletions

View File

@ -113,8 +113,8 @@ class WebEngineSettings(websettings.AbstractSettings):
'content.desktop_capture':
Attr(QWebEngineSettings.ScreenCaptureEnabled,
converter=lambda val: True if val == 'ask' else val),
# 'ask' is handled via the permission system, or a hardcoded
# dialog on Qt < 5.10
# 'ask' is handled via the permission system,
# or a hardcoded dialog on Qt < 5.10
'input.spatial_navigation':
Attr(QWebEngineSettings.SpatialNavigationEnabled),

View File

@ -655,6 +655,7 @@ class _WebEnginePermissions(QObject):
self._widget = None
def connect_signals(self):
"""Connect related signals from the QWebEnginePage."""
page = self._widget.page()
page.fullScreenRequested.connect(
self._on_fullscreen_requested)
@ -781,6 +782,7 @@ class _WebEngineScripts(QObject):
def __init__(self, tab, parent=None):
super().__init__(parent)
self._tab = tab
self._widget = None
def connect_signals(self):
config.instance.changed.connect(self._on_config_changed)

View File

@ -23,7 +23,6 @@ from PyQt5.QtWebKit import QWebSettings
from PyQt5.QtWebKitWidgets import QWebInspector
from qutebrowser.browser import inspector
from qutebrowser.config import config
class WebKitInspector(inspector.AbstractWebInspector):