void CaptionLabel::mousePressEvent(QMouseEvent* e) { if (e->buttons() & Qt::LeftButton) { e->accept(); m_collapsed = !m_collapsed; emit collapseOrExpand(m_collapsed); } else { e->ignore(); } }
void CaptionLabel::expand() { m_collapsed = false; emit collapseOrExpand(m_collapsed); }
void CollapsiblePanel::expand() { collapseOrExpand(false); }
void CollapsiblePanel::collapse() { collapseOrExpand(true); }
void CaptionLabel::collapse() { m_collapsed = true; emit collapseOrExpand(m_collapsed); }