23 #include <QChildEvent>
24 #include <QMouseEvent>
25 #include <QStylePainter>
26 #include <QStyleOptionGroupBox>
63 #if QT_VERSION >= 0x040600
64 Style =
new ctkCollapsibleGroupBoxStyle;
68 "ctkCollapsibleGroupBox::indicator:checked{"
69 "image: url(:/Icons/expand-up.png);}"
70 "ctkCollapsibleGroupBox::indicator:unchecked{"
71 "image: url(:/Icons/expand-down.png);}");
117 if(c && c->
type() == QEvent::ChildAdded)
128 #if QT_VERSION < 0x040600
137 option.activeSubControls &= !QStyle::SC_GroupBoxCheckBox;
145 if (event->
button() != Qt::LeftButton) {
155 if (event->
button() != Qt::LeftButton) {
162 box.activeSubControls &= !QStyle::SC_GroupBoxCheckBox;
165 bool toggle = this->
isCheckable() && (released == QStyle::SC_GroupBoxLabel
166 || released == QStyle::SC_GroupBoxCheckBox);