Skip to content

Commit 5152589

Browse files
author
Johnson Thomasson
committed
Updated _misplaced_members for PySide6
1 parent 5cd97b2 commit 5152589

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Qt.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,6 +931,11 @@ def createWidget(self, class_name, parent=None, name=""):
931931
"""
932932
_misplaced_members = {
933933
"PySide6": {
934+
"QtGui.QUndoCommand": "QtWidgets.QUndoCommand",
935+
"QtGui.QUndoGroup": "QtWidgets.QUndoGroup",
936+
"QtGui.QUndoStack": "QtWidgets.QUndoStack",
937+
"QtGui.QActionGroup": "QtWidgets.QActionGroup",
938+
934939
"QtCore.QStringListModel": "QtCore.QStringListModel",
935940
"QtGui.QStringListModel": "QtCore.QStringListModel",
936941
"QtCore.Property": "QtCore.Property",
@@ -964,7 +969,12 @@ def createWidget(self, class_name, parent=None, name=""):
964969
"QtWidgets.QStyleOptionViewItem": "QtCompat.QStyleOptionViewItemV4",
965970
"QtWidgets.QActionGroup": "QtGui.QActionGroup",
966971
},
967-
"PySide2": {
972+
"PySide2": {
973+
"QtWidgets.QUndoCommand": "QtWidgets.QUndoCommand",
974+
"QtWidgets.QUndoGroup": "QtWidgets.QUndoGroup",
975+
"QtWidgets.QUndoStack": "QtWidgets.QUndoStack",
976+
"QtWidgets.QActionGroup": "QtWidgets.QActionGroup",
977+
968978
"QtCore.QStringListModel": "QtCore.QStringListModel",
969979

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

0 commit comments

Comments
 (0)