mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-24 22:55:41 +00:00
Allow clicking on labels of collapse group boxes to toggle
This commit is contained in:
@@ -130,7 +130,9 @@ void CollapseGroupBox::mouseReleaseEvent(QMouseEvent *event)
|
||||
// pretend we have a groupbox so we can hit-test for it
|
||||
option.subControls |= QStyle::SC_GroupBoxCheckBox;
|
||||
|
||||
if(style()->hitTestComplexControl(QStyle::CC_GroupBox, &option, event->pos(), this) ==
|
||||
QStyle::SC_GroupBoxCheckBox)
|
||||
if(style()->hitTestComplexControl(QStyle::CC_GroupBox, &option, event->pos(), this) &
|
||||
(QStyle::SC_GroupBoxCheckBox | QStyle::SC_GroupBoxLabel))
|
||||
{
|
||||
setCollapsed(!m_collapsed);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user