Actions
Bug #866
closedBug: WTreeView toggle(expand/collapse) button dosn't work when DEBUG is enabled in wt_config.xml.
Start date:
06/21/2011
Due date:
% Done:
0%
Estimated time:
Description
Since class ToggleButton inherits class WText.
in WText.c:
WText::WText(...)
{
  WT_DEBUG(setObjectName("WText"));
  ...
}
the id in DOM will have a "WText_" prefix
but, the Toggle button's signals exposed with "pure" id without any prefix.
so, the button dosnt work, and will log a "[Error]... signal not exposed".
proposal in WTreeView.C:
class ToggleButton : public Wt::WText
{
  ToggleButton() 
    : WText(...),
      ...
  {
    //prevent prefix "WText" of DOM id
    WT_DEBUG(setObjectName(""));
    ...
    ...
  }
Updated by Koen Deforche over 14 years ago
- Status changed from New to Resolved
- Assignee changed from Pieter Libin to Koen Deforche
Hey,
I had fixed this already in the general case (by consistently using the same id for the JSignal and the object itself).
I still need to push that to the git repo.
Regards,
koen
Updated by Koen Deforche over 14 years ago
- Status changed from Resolved to Closed
Actions