Skip to content

Commit

Permalink
fix PYQT6 error on double click (see issue #22830)
Browse files Browse the repository at this point in the history
QMouseEvent needs QPointF, not QPoint
  • Loading branch information
fxjaeckel committed Nov 5, 2024
1 parent 5ce099e commit 8ca8a7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spyder/plugins/editor/widgets/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ def mousePressEvent(self, event):
if sys.platform.startswith('linux') and event.button() == Qt.MidButton:
self.calltip_widget.hide()
self.setFocus()
event = QMouseEvent(QEvent.MouseButtonPress, event.pos(),
event = QMouseEvent(QEvent.MouseButtonPress, event.position(),
Qt.LeftButton, Qt.LeftButton, Qt.NoModifier)
QPlainTextEdit.mousePressEvent(self, event)
QPlainTextEdit.mouseReleaseEvent(self, event)
Expand Down

0 comments on commit 8ca8a7e

Please sign in to comment.