From d02d94a0b1ce2588cb27967b89a9189f1dfaa480 Mon Sep 17 00:00:00 2001 From: cidoku Date: Mon, 3 Mar 2025 03:54:27 -0300 Subject: [PATCH] fix chatlog mouse behavior --- gameview.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/gameview.py b/gameview.py index a746e0f..68ba1d1 100644 --- a/gameview.py +++ b/gameview.py @@ -252,7 +252,7 @@ class ChatLogs(QtGui.QTextEdit): def __init__(self, parent, logtype, logfile=None): QtGui.QTextEdit.__init__(self, parent) self.type = logtype - self.setMouseTracking(True) + #self.setMouseTracking(True) self.logfile = None self.anchor = None self.savelog = False @@ -281,19 +281,19 @@ class ChatLogs(QtGui.QTextEdit): else: self.logfile = None - def mouseMoveEvent(self, e): - super(ChatLogs, self).mouseMoveEvent(e) - self.anchor = self.anchorAt(e.pos()) + # def mouseMoveEvent(self, e): + # super(ChatLogs, self).mouseMoveEvent(e) + # self.anchor = self.anchorAt(e.pos()) # if self.anchor: # QtGui.QApplication.setOverrideCursor(QtCore.Qt.PointingHandCursor) # else: # QtGui.QApplication.setOverrideCursor(QtCore.Qt.ArrowCursor) - def mouseReleaseEvent(self, e): - if self.anchor: - QtGui.QDesktopServices.openUrl(QtCore.QUrl(self.anchor)) + # def mouseReleaseEvent(self, e): + # if self.anchor: + # QtGui.QDesktopServices.openUrl(QtCore.QUrl(self.anchor)) # QtGui.QApplication.setOverrideCursor(QtCore.Qt.ArrowCursor) - self.anchor = None + # self.anchor = None def __del__(self): if self.savelog: @@ -3455,7 +3455,7 @@ class gui(QtGui.QWidget): self.paircheckbox.setText("This server does not support pairing.") self.deskbtn.setDisabled("deskmod" not in features) - self.flipbutton.setVisible("flipping" in features) + self.flipbutton.setDisabled("flipping" not in features) self.customobject.setVisible("customobjections" in features) self.ypairoffset.setVisible("y_offset" in features) self.ypairoffset_l.setVisible("y_offset" in features)