Skip to content

Commit

Permalink
updated _common_members.removed redundant mapping in _misplaced_members
Browse files Browse the repository at this point in the history
  • Loading branch information
zoshua authored Feb 20, 2024
1 parent 249cd2c commit 54598d3
Showing 1 changed file with 11 additions and 37 deletions.
48 changes: 11 additions & 37 deletions Qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,12 @@

_common_members = {
"QtCore": [
"Property",
"QAbstractAnimation",
"QAbstractEventDispatcher",
"QAbstractItemModel",
"QAbstractListModel",
"QAbstractProxyModel",
"QAbstractState",
"QAbstractTableModel",
"QAbstractTransition",
Expand Down Expand Up @@ -116,6 +118,8 @@
"QGenericArgument",
"QGenericReturnArgument",
"QHistoryState",
"QItemSelection",
"QItemSelectionModel",
"QItemSelectionRange",
"QIODevice",
"QLibraryInfo",
Expand Down Expand Up @@ -157,8 +161,10 @@
"QSize",
"QSizeF",
"QSocketNotifier",
"QSortFilterProxyModel",
"QState",
"QStateMachine",
"QStringListModel",
"QSysInfo",
"QSystemSemaphore",
"QT_TRANSLATE_NOOP",
Expand Down Expand Up @@ -213,7 +219,9 @@
"qVersion",
"qWarning",
"qrand",
"qsrand"
"qsrand",
"Signal",
"Slot"
],
"QtGui": [
"QAbstractTextDocumentLayout",
Expand Down Expand Up @@ -444,6 +452,7 @@
"QAbstractScrollArea",
"QAbstractSlider",
"QAbstractSpinBox",
"QAction",
"QActionGroup",
"QApplication",
"QBoxLayout",
Expand Down Expand Up @@ -551,6 +560,7 @@
"QRubberBand",
"QScrollArea",
"QScrollBar",
"QShortcut",
"QSizeGrip",
"QSizePolicy",
"QSlider",
Expand Down Expand Up @@ -1023,17 +1033,8 @@ def createWidget(self, class_name, parent=None, name=""):
_misplaced_members = {
"PySide6": {
"QtGui.QShortcut": "QtWidgets.QShortcut",
"QtCore.QStringListModel": "QtCore.QStringListModel",
"QtGui.QStringListModel": "QtCore.QStringListModel",
"QtGui.QAction": "QtWidgets.QAction",
"QtCore.Property": "QtCore.Property",
"QtCore.Signal": "QtCore.Signal",
"QtCore.Slot": "QtCore.Slot",
"QtCore.QAbstractProxyModel": "QtCore.QAbstractProxyModel",
"QtCore.QSortFilterProxyModel": "QtCore.QSortFilterProxyModel",
"QtCore.QItemSelection": "QtCore.QItemSelection",
"QtCore.QItemSelectionModel": "QtCore.QItemSelectionModel",
"QtCore.QItemSelectionRange": "QtCore.QItemSelectionRange",
"QtUiTools.QUiLoader": ["QtCompat.loadUi", _loadUi],
"shiboken6.wrapInstance": ["QtCompat.wrapInstance", _wrapinstance],
"shiboken6.getCppPointer": ["QtCompat.getCppPointer", _getcpppointer],
Expand All @@ -1052,18 +1053,7 @@ def createWidget(self, class_name, parent=None, name=""):
"QtMultimedia.QSound": "QtMultimedia.QSound",
},
"PySide2": {
"QtWidgets.QShortcut": "QtWidgets.QShortcut",
"QtCore.QStringListModel": "QtCore.QStringListModel",
"QtGui.QStringListModel": "QtCore.QStringListModel",
"QtWidgets.QAction": "QtWidgets.QAction",
"QtCore.Property": "QtCore.Property",
"QtCore.Signal": "QtCore.Signal",
"QtCore.Slot": "QtCore.Slot",
"QtCore.QAbstractProxyModel": "QtCore.QAbstractProxyModel",
"QtCore.QSortFilterProxyModel": "QtCore.QSortFilterProxyModel",
"QtCore.QItemSelection": "QtCore.QItemSelection",
"QtCore.QItemSelectionModel": "QtCore.QItemSelectionModel",
"QtCore.QItemSelectionRange": "QtCore.QItemSelectionRange",
"QtUiTools.QUiLoader": ["QtCompat.loadUi", _loadUi],
"shiboken2.wrapInstance": ["QtCompat.wrapInstance", _wrapinstance],
"shiboken2.getCppPointer": ["QtCompat.getCppPointer", _getcpppointer],
Expand All @@ -1082,17 +1072,9 @@ def createWidget(self, class_name, parent=None, name=""):
"QtMultimedia.QSound": "QtMultimedia.QSound",
},
"PyQt5": {
"QtWidgets.QShortcut": "QtWidgets.QShortcut",
"QtWidgets.QAction": "QtWidgets.QAction",
"QtCore.pyqtProperty": "QtCore.Property",
"QtCore.pyqtSignal": "QtCore.Signal",
"QtCore.pyqtSlot": "QtCore.Slot",
"QtCore.QAbstractProxyModel": "QtCore.QAbstractProxyModel",
"QtCore.QSortFilterProxyModel": "QtCore.QSortFilterProxyModel",
"QtCore.QStringListModel": "QtCore.QStringListModel",
"QtCore.QItemSelection": "QtCore.QItemSelection",
"QtCore.QItemSelectionModel": "QtCore.QItemSelectionModel",
"QtCore.QItemSelectionRange": "QtCore.QItemSelectionRange",
"uic.loadUi": ["QtCompat.loadUi", _loadUi],
"sip.wrapinstance": ["QtCompat.wrapInstance", _wrapinstance],
"sip.unwrapinstance": ["QtCompat.getCppPointer", _getcpppointer],
Expand All @@ -1111,16 +1093,11 @@ def createWidget(self, class_name, parent=None, name=""):
"QtMultimedia.QSound": "QtMultimedia.QSound",
},
"PySide": {
"QtWidgets.QShortcut": "QtWidgets.QShortcut",
"QtWidgets.QAction": "QtWidgets.QAction",
"QtGui.QAbstractProxyModel": "QtCore.QAbstractProxyModel",
"QtGui.QSortFilterProxyModel": "QtCore.QSortFilterProxyModel",
"QtGui.QStringListModel": "QtCore.QStringListModel",
"QtGui.QItemSelection": "QtCore.QItemSelection",
"QtGui.QItemSelectionModel": "QtCore.QItemSelectionModel",
"QtCore.Property": "QtCore.Property",
"QtCore.Signal": "QtCore.Signal",
"QtCore.Slot": "QtCore.Slot",
"QtGui.QItemSelectionRange": "QtCore.QItemSelectionRange",
"QtGui.QAbstractPrintDialog": "QtPrintSupport.QAbstractPrintDialog",
"QtGui.QPageSetupDialog": "QtPrintSupport.QPageSetupDialog",
Expand Down Expand Up @@ -1148,8 +1125,6 @@ def createWidget(self, class_name, parent=None, name=""):
"QtGui.QSound": "QtMultimedia.QSound",
},
"PyQt4": {
"QtWidgets.QShortcut": "QtWidgets.QShortcut",
"QtWidgets.QAction": "QtWidgets.QAction",
"QtGui.QAbstractProxyModel": "QtCore.QAbstractProxyModel",
"QtGui.QSortFilterProxyModel": "QtCore.QSortFilterProxyModel",
"QtGui.QItemSelection": "QtCore.QItemSelection",
Expand All @@ -1167,7 +1142,6 @@ def createWidget(self, class_name, parent=None, name=""):
"QtGui.QPrintPreviewWidget": "QtPrintSupport.QPrintPreviewWidget",
"QtGui.QPrinter": "QtPrintSupport.QPrinter",
"QtGui.QPrinterInfo": "QtPrintSupport.QPrinterInfo",
# "QtCore.pyqtSignature": "QtCore.Slot",
"uic.loadUi": ["QtCompat.loadUi", _loadUi],
"sip.wrapinstance": ["QtCompat.wrapInstance", _wrapinstance],
"sip.unwrapinstance": ["QtCompat.getCppPointer", _getcpppointer],
Expand Down

0 comments on commit 54598d3

Please sign in to comment.