Skip to content

Commit

Permalink
Merge pull request #374 from astrofrog/fix-reassign-members
Browse files Browse the repository at this point in the history
Don't re-assign Qt.MouseButton.MiddleButton on PySide6
  • Loading branch information
dalthviz authored Oct 17, 2022
2 parents e7a7060 + ad9d386 commit 1a5fbde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qtpy/QtCore.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
# Alias deprecated ItemDataRole enum values removed in Qt6
Qt.BackgroundColorRole = Qt.ItemDataRole.BackgroundColorRole = Qt.BackgroundRole
Qt.TextColorRole = Qt.ItemDataRole.TextColorRole = Qt.ForegroundRole
Qt.MidButton = Qt.MouseButton.MiddleButton = Qt.MiddleButton
Qt.MidButton = Qt.MiddleButton

# Map DeprecationWarning methods
QCoreApplication.exec_ = QCoreApplication.exec
Expand Down

0 comments on commit 1a5fbde

Please sign in to comment.