Toggling WPanel collapse state via title bar does not emit signals
It is possible to toggle the collapse state of a collapsible
Wt::WPanel by clicking on either the expand/collapse icon or the title bar text. When using the icons, the
collapsed() signals are emitted. However, when using the title bar, neither of these signals are emitted.
I do note there are
collapsedSS() signals, emitted under different circumstances, but not sure what those are for.
The attached patch causes the correct
collapsed() signal to be emitted on toggling via title bar click (added in
Wt::WPanel::toggleCollapse(), which is a private slot called only on title bar click).