@@ 69-75 (lines=7) @@ | ||
66 | ||
67 | _insertItem = QComboBox.insertItem |
|
68 | ||
69 | def insertItem(self, *args, **kwargs): |
|
70 | if len(args) == 4 or (not isinstance(args[1], QIcon) |
|
71 | and len(args) == 3): |
|
72 | args, kwargs['userData'] = args[:-1], args[-1] |
|
73 | if 'userData' in kwargs: |
|
74 | kwargs['userData'] = userDataWrapper(kwargs['userData']) |
|
75 | _insertItem(self, *args, **kwargs) |
|
76 | ||
77 | _setItemData = QComboBox.setItemData |
|
78 | ||
@@ 59-65 (lines=7) @@ | ||
56 | ||
57 | _addItem = QComboBox.addItem |
|
58 | ||
59 | def addItem(self, *args, **kwargs): |
|
60 | if len(args) == 3 or (not isinstance(args[0], QIcon) |
|
61 | and len(args) == 2): |
|
62 | args, kwargs['userData'] = args[:-1], args[-1] |
|
63 | if 'userData' in kwargs: |
|
64 | kwargs['userData'] = userDataWrapper(kwargs['userData']) |
|
65 | _addItem(self, *args, **kwargs) |
|
66 | ||
67 | _insertItem = QComboBox.insertItem |
|
68 |