Various cleanups
This commit is contained in:
parent
9421db8869
commit
1c9d0857cb
@ -58,8 +58,8 @@ class WrapperLayout(QLayout):
|
|||||||
def sizeHint(self):
|
def sizeHint(self):
|
||||||
return self._widget.sizeHint()
|
return self._widget.sizeHint()
|
||||||
|
|
||||||
def itemAt(self, _index):
|
def itemAt(self, _index): # pragma: no cover
|
||||||
# FIXME why does this get called?
|
# For some reason this sometimes gets called by Qt.
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def takeAt(self, _index):
|
def takeAt(self, _index):
|
||||||
@ -113,7 +113,7 @@ class AbstractSearch(QObject):
|
|||||||
self.text = None
|
self.text = None
|
||||||
self._flags = 0
|
self._flags = 0
|
||||||
|
|
||||||
def search(self, text, *, ignore_case=False, wrap=False):
|
def search(self, text, *, ignore_case=False, wrap=False, reverse=False):
|
||||||
"""Find the given text on the page.
|
"""Find the given text on the page.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
@ -154,7 +154,7 @@ class AbstractZoom(QObject):
|
|||||||
self._init_neighborlist()
|
self._init_neighborlist()
|
||||||
objreg.get('config').changed.connect(self.on_config_changed)
|
objreg.get('config').changed.connect(self.on_config_changed)
|
||||||
|
|
||||||
# # FIXME is this needed?
|
# # FIXME:refactor is this needed?
|
||||||
# # For some reason, this signal doesn't get disconnected automatically
|
# # For some reason, this signal doesn't get disconnected automatically
|
||||||
# # when the WebView is destroyed on older PyQt versions.
|
# # when the WebView is destroyed on older PyQt versions.
|
||||||
# # See https://github.com/The-Compiler/qutebrowser/issues/390
|
# # See https://github.com/The-Compiler/qutebrowser/issues/390
|
||||||
|
Loading…
Reference in New Issue
Block a user