summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
)
]