Revert changes in _click
This commit is contained in:
parent
fd678ff864
commit
a3126635d4
@ -207,24 +207,19 @@ class HintManager(QObject):
|
|||||||
css, string))
|
css, string))
|
||||||
return doc.lastChild()
|
return doc.lastChild()
|
||||||
|
|
||||||
def _click(self, elem, target=None, frame=None):
|
def _click(self, elem):
|
||||||
"""Click an element.
|
"""Click an element.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
elem: The QWebElement to click.
|
elem: The QWebElement to click.
|
||||||
target_override: Target which overrides self._target
|
|
||||||
"""
|
"""
|
||||||
if target is not None:
|
if self._target == 'rapid':
|
||||||
pass
|
|
||||||
elif self._target == 'rapid':
|
|
||||||
target = 'bgtab'
|
target = 'bgtab'
|
||||||
else:
|
else:
|
||||||
target = self._target
|
target = self._target
|
||||||
if frame is None:
|
|
||||||
frame = self._frame
|
|
||||||
self.set_open_target.emit(target)
|
self.set_open_target.emit(target)
|
||||||
point = elem.geometry().topLeft()
|
point = elem.geometry().topLeft()
|
||||||
scrollpos = frame.scrollPosition()
|
scrollpos = self._frame.scrollPosition()
|
||||||
logging.debug("Clicking on \"{}\" at {}/{} - {}/{}".format(
|
logging.debug("Clicking on \"{}\" at {}/{} - {}/{}".format(
|
||||||
elem.toPlainText(), point.x(), point.y(), scrollpos.x(),
|
elem.toPlainText(), point.x(), point.y(), scrollpos.x(),
|
||||||
scrollpos.y()))
|
scrollpos.y()))
|
||||||
|
Loading…
Reference in New Issue
Block a user