Skip to content

Commit

Permalink
Merge bdbda26 into 3238de7
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreRaybaut committed Mar 1, 2024
2 parents 3238de7 + bdbda26 commit 05cd648
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qtpy/QtCore.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@

# Alias for MiddleButton removed in PyQt6 but available in PyQt5, PySide2 and PySide6
Qt.MidButton = Qt.MiddleButton
Qt.MouseButton.MidButton = Qt.MiddleButton

# Add removed definition for `Qt.ItemFlags` as an alias of `Qt.ItemFlag`
# passing as default value 0 in the same way PySide6 6.5+ does.
Expand Down Expand Up @@ -142,6 +143,7 @@
) = Qt.BackgroundRole
Qt.TextColorRole = Qt.ItemDataRole.TextColorRole = Qt.ForegroundRole
Qt.MidButton = Qt.MiddleButton
Qt.MouseButton.MidButton = Qt.MiddleButton

# Map DeprecationWarning methods
QCoreApplication.exec_ = lambda *args, **kwargs: possibly_static_exec(
Expand Down

0 comments on commit 05cd648

Please sign in to comment.