Skip to content

Commit 79e4ad5

Browse files
fix(box): paint QFrame by default
1 parent f07f5e5 commit 79e4ad5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

qt_parameters/box.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,9 @@ def setLayout(self, layout: QtWidgets.QLayout) -> None:
141141
self.frame.setLayout(layout)
142142

143143
def paintEvent(self, event: QtGui.QPaintEvent) -> None:
144-
if not self._style == CollapsibleBox.Style.BUTTON:
144+
if self._style != CollapsibleBox.Style.BUTTON:
145145
super().paintEvent(event)
146+
return
146147

147148
option = QtWidgets.QStyleOptionButton()
148149
option.initFrom(self)

0 commit comments

Comments
 (0)