Project

General

Profile

Actions

Bug #866

closed

Bug: WTreeView toggle(expand/collapse) button dosn't work when DEBUG is enabled in wt_config.xml.

Added by DQ Qin over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
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(""));


    ...
    ...
  }
Actions #1

Updated by Koen Deforche over 12 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

Actions #2

Updated by Koen Deforche over 12 years ago

  • Target version set to 3.1.10
Actions #3

Updated by Koen Deforche over 12 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF