Skip to content

Commit

Permalink
Merge pull request #405 from johnsonthomassonttf/PySide6-missing-members
Browse files Browse the repository at this point in the history
Updated _misplaced_members for PySide6
  • Loading branch information
mottosso authored May 14, 2024
2 parents 5cd97b2 + 6758d8a commit 782fd8b
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions Qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,10 @@ 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 @@ -962,9 +966,12 @@ def createWidget(self, class_name, parent=None, name=""):
"QtCompat.qInstallMessageHandler", _qInstallMessageHandler
],
"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 Expand Up @@ -998,6 +1005,10 @@ def createWidget(self, class_name, parent=None, name=""):
"QtWidgets.QStyleOptionViewItem": "QtCompat.QStyleOptionViewItemV4",
},
"PyQt5": {
"QtWidgets.QUndoCommand": "QtWidgets.QUndoCommand",
"QtWidgets.QUndoGroup": "QtWidgets.QUndoGroup",
"QtWidgets.QUndoStack": "QtWidgets.QUndoStack",
"QtWidgets.QActionGroup": "QtWidgets.QActionGroup",
"QtCore.pyqtProperty": "QtCore.Property",
"QtCore.pyqtSignal": "QtCore.Signal",
"QtCore.pyqtSlot": "QtCore.Slot",
Expand All @@ -1021,6 +1032,10 @@ def createWidget(self, class_name, parent=None, name=""):
"QtWidgets.QStyleOptionViewItem": "QtCompat.QStyleOptionViewItemV4",
},
"PySide": {
"QtGui.QUndoCommand": "QtWidgets.QUndoCommand",
"QtGui.QUndoGroup": "QtWidgets.QUndoGroup",
"QtGui.QUndoStack": "QtWidgets.QUndoStack",
"QtGui.QActionGroup": "QtWidgets.QActionGroup",
"QtCore.Property": "QtCore.Property",
"QtCore.Signal": "QtCore.Signal",
"QtCore.Slot": "QtCore.Slot",
Expand Down Expand Up @@ -1058,6 +1073,10 @@ def createWidget(self, class_name, parent=None, name=""):
"QtGui.QStyleOptionViewItemV4": "QtCompat.QStyleOptionViewItemV4",
},
"PyQt4": {
"QtGui.QUndoCommand": "QtWidgets.QUndoCommand",
"QtGui.QUndoGroup": "QtWidgets.QUndoGroup",
"QtGui.QUndoStack": "QtWidgets.QUndoStack",
"QtGui.QActionGroup": "QtWidgets.QActionGroup",
"QtGui.QAbstractProxyModel": "QtCore.QAbstractProxyModel",
"QtGui.QSortFilterProxyModel": "QtCore.QSortFilterProxyModel",
"QtGui.QItemSelection": "QtCore.QItemSelection",
Expand Down

0 comments on commit 782fd8b

Please sign in to comment.