summaryrefslogtreecommitdiff
path: root/qutebrowser
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-08-26 17:53:21 +0200
committerFlorian Bruhin <me@the-compiler.org>2021-08-26 17:53:21 +0200
commit84ed0da180690419de357feadd57aa9233bb60a0 (patch)
tree2faf5daf885e9a548befa629d892c622fe3cb9d4 /qutebrowser
parent1cc87d4d47bc15754d1638253dd4e8f6605bc5b9 (diff)
downloadqutebrowser-84ed0da180690419de357feadd57aa9233bb60a0.tar.gz
qutebrowser-84ed0da180690419de357feadd57aa9233bb60a0.zip
FIXME QMouseEvent weirdness
Diffstat (limited to 'qutebrowser')
-rw-r--r--qutebrowser/browser/eventfilter.py2
-rw-r--r--qutebrowser/utils/version.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/qutebrowser/browser/eventfilter.py b/qutebrowser/browser/eventfilter.py
index 34d2c98e5..cd8881828 100644
--- a/qutebrowser/browser/eventfilter.py
+++ b/qutebrowser/browser/eventfilter.py
@@ -107,7 +107,7 @@ class TabEventFilter(QObject):
self._ignore_wheel_event = True
- pos = e.pos()
+ pos = e.position()
if pos.x() < 0 or pos.y() < 0:
log.mouse.warning("Ignoring invalid click at {}".format(pos))
return False
diff --git a/qutebrowser/utils/version.py b/qutebrowser/utils/version.py
index 9965345d1..c66528aab 100644
--- a/qutebrowser/utils/version.py
+++ b/qutebrowser/utils/version.py
@@ -850,8 +850,8 @@ def version_info() -> str:
"Imported from {}".format(importpath),
"Using Python from {}".format(sys.executable),
"Qt library executable path: {}, data path: {}".format(
- QLibraryInfo.location(QLibraryInfo.LibraryLocation.LibraryExecutablesPath),
- QLibraryInfo.location(QLibraryInfo.LibraryLocation.DataPath)
+ QLibraryInfo.path(QLibraryInfo.LibraryPath.LibraryExecutablesPath),
+ QLibraryInfo.path(QLibraryInfo.LibraryPath.DataPath)
)
]