Skip to content

Commit

Permalink
added PySide6 to update_misplaced_members() and update_compatibility_…
Browse files Browse the repository at this point in the history
…members()
  • Loading branch information
zoshua committed Apr 6, 2024
1 parent e6edaa8 commit 3967fe4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/QtSiteConfig/QtSiteConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def update_misplaced_members(members):
members (dict): The members considered by Qt.py
"""
# Create Qt.QtGui.QColorTest that points to Qtgui.QColor for unit testing.
members["PySide6"]["QtGui.QColor"] = "QtGui.QColorTest"
members["PySide2"]["QtGui.QColor"] = "QtGui.QColorTest"
members["PyQt5"]["QtGui.QColor"] = "QtGui.QColorTest"
members["PySide"]["QtGui.QColor"] = "QtGui.QColorTest"
Expand All @@ -37,7 +38,7 @@ def update_compatibility_members(members):
"""
# Create a QtCompat.QWidget compatibility class. This example is
# is used to provide a testable unittest
for binding in ("PySide2", "PyQt5", "PySide", "PyQt4"):
for binding in ("PySide6", "PySide2", "PyQt5", "PySide", "PyQt4"):
members[binding]["QWidget"] = {
# Simple remapping of QWidget.windowTitle
"windowTitleTest": "QtWidgets.QWidget.windowTitle",
Expand Down

0 comments on commit 3967fe4

Please sign in to comment.