@@ -29,8 +29,8 @@ def paint(self, painter, option, index):
29
29
opt = QStyleOptionViewItem (option )
30
30
self .initStyleOption (opt , index )
31
31
32
- iconRect = style .subElementRect (style .SE_ItemViewItemDecoration , opt )
33
- textRect = style .subElementRect (style .SE_ItemViewItemText , opt )
32
+ iconRect = style .subElementRect (style .SE_ItemViewItemDecoration , opt , None )
33
+ textRect = style .subElementRect (style .SE_ItemViewItemText , opt , None )
34
34
35
35
# Background
36
36
style .drawPrimitive (style .PE_PanelItemViewItem , opt , painter )
@@ -183,7 +183,7 @@ def paint(self, painter, option, index):
183
183
if itemIndex .isValid () and self .mdlCharacter .data (itemIndex ) not in ["" , None ]:
184
184
opt = QStyleOptionComboBox ()
185
185
opt .rect = option .rect
186
- r = qApp .style ().subControlRect (QStyle .CC_ComboBox , opt , QStyle .SC_ComboBoxArrow )
186
+ r = qApp .style ().subControlRect (QStyle .CC_ComboBox , opt , QStyle .SC_ComboBoxArrow , None )
187
187
option .rect = r
188
188
qApp .style ().drawPrimitive (QStyle .PE_IndicatorArrowDown , option , painter )
189
189
@@ -295,7 +295,7 @@ def paint(self, painter, option, index):
295
295
if index .isValid () and index .internalPointer ().data (Outline .status ) not in ["" , None , "0" , 0 ]:
296
296
opt = QStyleOptionComboBox ()
297
297
opt .rect = option .rect
298
- r = qApp .style ().subControlRect (QStyle .CC_ComboBox , opt , QStyle .SC_ComboBoxArrow )
298
+ r = qApp .style ().subControlRect (QStyle .CC_ComboBox , opt , QStyle .SC_ComboBoxArrow , None )
299
299
option .rect = r
300
300
qApp .style ().drawPrimitive (QStyle .PE_IndicatorArrowDown , option , painter )
301
301
@@ -361,6 +361,6 @@ def paint(self, painter, option, index):
361
361
if index .isValid () and index .internalPointer ().data (Outline .label ) not in ["" , None , "0" , 0 ]:
362
362
opt = QStyleOptionComboBox ()
363
363
opt .rect = option .rect
364
- r = qApp .style ().subControlRect (QStyle .CC_ComboBox , opt , QStyle .SC_ComboBoxArrow )
364
+ r = qApp .style ().subControlRect (QStyle .CC_ComboBox , opt , QStyle .SC_ComboBoxArrow , None )
365
365
option .rect = r
366
366
qApp .style ().drawPrimitive (QStyle .PE_IndicatorArrowDown , option , painter )
0 commit comments