mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
changed bg_rect to QRectF
This commit is contained in:
parent
4954a3dba0
commit
918ff9eefa
1 changed files with 2 additions and 2 deletions
|
|
@ -273,7 +273,7 @@ class CheckComboBox(QtWidgets.QComboBox):
|
|||
rect.moveLeft(left_x)
|
||||
rect.setHeight(option.rect.height())
|
||||
|
||||
bg_rect = QtCore.QRect(rect)
|
||||
bg_rect = QtCore.QRectF(rect)
|
||||
bg_rect.setWidth(rect.width() + (2 * side_padding))
|
||||
left_x = bg_rect.right() + item_spacing
|
||||
|
||||
|
|
@ -287,7 +287,7 @@ class CheckComboBox(QtWidgets.QComboBox):
|
|||
path = QtGui.QPainterPath()
|
||||
path.addRoundedRect(bg_rect, 5, 5)
|
||||
|
||||
painter.fillPath(path, QtGui.QColor("#38d39f"))
|
||||
painter.fillPath(path, QtGui.QColor("#555555"))
|
||||
|
||||
painter.drawText(
|
||||
rect,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue