Skip to content

Commit

Permalink
QtCore: Remove guiQt after utility functions assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
dalthviz committed Jan 13, 2022
1 parent 1f72321 commit f94ceca
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 @@ -71,6 +71,7 @@
if getattr(Qt, 'mightBeRichText', None) is None:
from PySide6.QtGui import Qt as guiQt
Qt.mightBeRichText = guiQt.mightBeRichText
del guiQt

# obsolete in qt6
Qt.BackgroundColorRole = Qt.BackgroundRole
Expand Down Expand Up @@ -99,6 +100,7 @@
try:
from PySide2.QtGui import Qt as guiQt
Qt.mightBeRichText = guiQt.mightBeRichText
del guiQt
except ImportError:
# Fails with PySide2 5.12.0
pass
Expand Down

0 comments on commit f94ceca

Please sign in to comment.