diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-11-28 16:55:09 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-11-28 16:55:09 +0100 |
commit | 8749729bd2820b103cd79ebaed643c83d2607e8e (patch) | |
tree | 476c97826f47cafa1fd774c082a043368e9ae944 /qutebrowser | |
parent | 6e31283f7a0194658217777a193c642d8df933d7 (diff) | |
download | qutebrowser-8749729bd2820b103cd79ebaed643c83d2607e8e.tar.gz qutebrowser-8749729bd2820b103cd79ebaed643c83d2607e8e.zip |
QPointF needs to be explicit - PyQt bug?
Diffstat (limited to 'qutebrowser')
-rw-r--r-- | qutebrowser/browser/webelem.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qutebrowser/browser/webelem.py b/qutebrowser/browser/webelem.py index c4dbe8ebb..bf7af7a9c 100644 --- a/qutebrowser/browser/webelem.py +++ b/qutebrowser/browser/webelem.py @@ -22,7 +22,7 @@ from typing import cast, TYPE_CHECKING, Iterator, Optional, Set, Union import collections.abc -from PyQt6.QtCore import QUrl, Qt, QEvent, QTimer, QRect, QPoint +from PyQt6.QtCore import QUrl, Qt, QEvent, QTimer, QRect, QPoint, QPointF from PyQt6.QtGui import QMouseEvent from qutebrowser.config import config @@ -341,7 +341,7 @@ class AbstractWebElement(collections.abc.MutableMapping): # type: ignore[type-a def _click_fake_event(self, click_target: usertypes.ClickTarget, button: Qt.MouseButton = Qt.MouseButton.LeftButton) -> None: """Send a fake click event to the element.""" - pos = self._mouse_pos() + pos = QPointF(self._mouse_pos()) log.webelem.debug("Sending fake click to {!r} at position {} with " "target {}".format(self, pos, click_target)) |