Project

General

Profile

Bug #3813

Toggling WPanel collapse state via title bar does not emit signals

Added by Laurence Withers over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Benoit Daccache
Target version:
Start date:
02/22/2015
Due date:
% Done:

0%

Estimated time:

Description

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 expanded() and collapsed() signals are emitted. However, when using the title bar, neither of these signals are emitted.

I do note there are expandedSS() and collapsedSS() signals, emitted under different circumstances, but not sure what those are for.

The attached patch causes the correct expanded() or 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).


Files

wt-wpanel-signals.diff (893 Bytes) wt-wpanel-signals.diff Laurence Withers, 02/22/2015 08:47 PM

Also available in: Atom PDF