Skip to content

Commit

Permalink
Revert changes to collapsibleGroupBox.py
Browse files Browse the repository at this point in the history
It appears to be using a different type base QT object, so it doesn't
cause a crash here. It wouldn't have hurt anything, but still better to
not make a change when it's unnecessary
  • Loading branch information
ByteOfBrie committed Aug 15, 2024
1 parent 5d4aefd commit e1c7cd6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions manuskript/ui/collapsibleGroupBox.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ def paintEvent(self, event):
groupBox = opt

# // Draw frame
textRect = style.subControlRect(style.CC_GroupBox, opt, style.SC_GroupBoxLabel, None)
checkBoxRect = style.subControlRect(style.CC_GroupBox, opt, style.SC_GroupBoxCheckBox, None)
textRect = style.subControlRect(style.CC_GroupBox, opt, style.SC_GroupBoxLabel)
checkBoxRect = style.subControlRect(style.CC_GroupBox, opt, style.SC_GroupBoxCheckBox)

p.save()
titleRect = style.subControlRect(style.CC_GroupBox, opt, style.SC_GroupBoxFrame, None)
# r.setBottom(style.subControlRect(style.CC_GroupBox, opt, style.SC_GroupBoxContents).top(), None)
titleRect = style.subControlRect(style.CC_GroupBox, opt, style.SC_GroupBoxFrame)
# r.setBottom(style.subControlRect(style.CC_GroupBox, opt, style.SC_GroupBoxContents).top())
titleRect.setHeight(textRect.height())
titleRect.moveTop(textRect.top())

Expand All @@ -72,7 +72,7 @@ def paintEvent(self, event):
frame.features = groupBox.features
frame.lineWidth = groupBox.lineWidth
frame.midLineWidth = groupBox.midLineWidth
frame.rect = style.subControlRect(style.CC_GroupBox, opt, style.SC_GroupBoxFrame, None)
frame.rect = style.subControlRect(style.CC_GroupBox, opt, style.SC_GroupBoxFrame)
p.save()
region = QRegion(groupBox.rect)
if groupBox.text:
Expand Down

0 comments on commit e1c7cd6

Please sign in to comment.