Skip to content

Commit

Permalink
QMouseEvent.globalPos() is deprecated -> replace with globalPosition(…
Browse files Browse the repository at this point in the history
…).toPoint()

It's deprecated since 6.0 and doesn't work at all with 6.6
See https://doc.qt.io/qt-6/qmouseevent-obsolete.html
  • Loading branch information
zas committed May 6, 2024
1 parent 81a1ddf commit 23f161b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion picard/ui/widgets/tristatesortheaderview.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def mouseReleaseEvent(self, event):
tooltip = _(
"The table is locked. To enable sorting and column resizing\n"
"unlock the table in the table header's context menu.")
QtWidgets.QToolTip.showText(event.globalPos(), tooltip, self)
QtWidgets.QToolTip.showText(event.globalPosition().toPoint(), tooltip, self)
return

if event.button() == QtCore.Qt.MouseButton.LeftButton:
Expand Down

0 comments on commit 23f161b

Please sign in to comment.