From 39aaa1a49fc751ab2cf78fe36f4ee083fd15cecd Mon Sep 17 00:00:00 2001 From: Dpeta Date: Fri, 8 Jul 2022 10:54:22 +0200 Subject: [PATCH] .pos() --> .position().toPoint() & ver. --- CHANGELOG.md | 5 +++++ console.py | 4 ++-- convo.py | 6 +++--- generic.py | 4 ++-- logviewer.py | 4 ++-- pesterchum.py | 14 +++++--------- version.py | 4 ++-- 7 files changed, 21 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 81f7dee..161b5d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # Changelog (This document uses YYYY-MM-DD) +## [v2.4.2] - 2022-07-08 + +### Fixed + - Error when manually moving group. + ## [v2.4.1] - 2022-07-05 ### Added diff --git a/console.py b/console.py index c3210c7..55a8150 100644 --- a/console.py +++ b/console.py @@ -448,7 +448,7 @@ class ConsoleText(QtWidgets.QTextEdit): def mousePressEvent(self, event): if event.button() == QtCore.Qt.MouseButton.LeftButton: - url = self.anchorAt(event.pos()) + url = self.anchorAt(event.position().toPoint()) if url != "": # Skip memo/handle recognition # NOTE: Ctrl+Click copies the URL. Maybe it should select it? @@ -463,7 +463,7 @@ class ConsoleText(QtWidgets.QTextEdit): def mouseMoveEvent(self, event): # Change our cursor when we roll over links (anchors). super(ConsoleText, self).mouseMoveEvent(event) - if self.anchorAt(event.pos()): + if self.anchorAt(event.position().toPoint()): if self.viewport().cursor().shape != QtCore.Qt.CursorShape.PointingHandCursor: self.viewport().setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor)) else: diff --git a/convo.py b/convo.py index 2866f60..1ced55b 100644 --- a/convo.py +++ b/convo.py @@ -153,7 +153,7 @@ class PesterTabWindow(QtWidgets.QFrame): def contextMenuEvent(self, event): #~if event.reason() == QtGui.QContextMenuEvent.Reason.Mouse: - tabi = self.tabs.tabAt(event.pos()) + tabi = self.tabs.tabAt(event.position().toPoint()) if tabi < 0: tabi = self.tabs.currentIndex() for h, i in list(self.tabIndices.items()): @@ -501,7 +501,7 @@ class PesterText(QtWidgets.QTextEdit): def mousePressEvent(self, event): if event.button() == QtCore.Qt.MouseButton.LeftButton: - url = self.anchorAt(event.pos()) + url = self.anchorAt(event.position().toPoint()) if url != "": if url[0] == "#" and url != "#pesterchum": self.parent().mainwindow.showMemos(url[1:]) @@ -516,7 +516,7 @@ class PesterText(QtWidgets.QTextEdit): QtWidgets.QTextEdit.mousePressEvent(self, event) def mouseMoveEvent(self, event): QtWidgets.QTextEdit.mouseMoveEvent(self, event) - if self.anchorAt(event.pos()): + if self.anchorAt(event.position().toPoint()): if self.viewport().cursor().shape != QtCore.Qt.CursorShape.PointingHandCursor: self.viewport().setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor)) else: diff --git a/generic.py b/generic.py index d780b8f..8f47f37 100644 --- a/generic.py +++ b/generic.py @@ -45,7 +45,7 @@ class RightClickList(QtWidgets.QListWidget): def contextMenuEvent(self, event): #fuckin Qt <--- I feel that