Fix lint
This commit is contained in:
parent
67c67db230
commit
ad7e080827
@ -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),
|
||||
|
@ -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)
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user