Skip to content

Commit

Permalink
Updated _misplaced_members for PySide6
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsonthomassonttf committed May 9, 2024
1 parent 5cd97b2 commit 5152589
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,11 @@ def createWidget(self, class_name, parent=None, name=""):
"""
_misplaced_members = {
"PySide6": {
"QtGui.QUndoCommand": "QtWidgets.QUndoCommand",
"QtGui.QUndoGroup": "QtWidgets.QUndoGroup",
"QtGui.QUndoStack": "QtWidgets.QUndoStack",
"QtGui.QActionGroup": "QtWidgets.QActionGroup",

"QtCore.QStringListModel": "QtCore.QStringListModel",
"QtGui.QStringListModel": "QtCore.QStringListModel",
"QtCore.Property": "QtCore.Property",
Expand Down Expand Up @@ -964,7 +969,12 @@ def createWidget(self, class_name, parent=None, name=""):
"QtWidgets.QStyleOptionViewItem": "QtCompat.QStyleOptionViewItemV4",
"QtWidgets.QActionGroup": "QtGui.QActionGroup",
},
"PySide2": {
"PySide2": {
"QtWidgets.QUndoCommand": "QtWidgets.QUndoCommand",
"QtWidgets.QUndoGroup": "QtWidgets.QUndoGroup",
"QtWidgets.QUndoStack": "QtWidgets.QUndoStack",
"QtWidgets.QActionGroup": "QtWidgets.QActionGroup",

"QtCore.QStringListModel": "QtCore.QStringListModel",

# Older versions of PySide2 still left this in QtGui, this accounts for those too
Expand Down

0 comments on commit 5152589

Please sign in to comment.