Project

General

Profile

Actions

Bug #866

closed
DQ KD

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

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

Added by DQ Qin about 15 years ago. Updated about 15 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(""));


    ...
    ...
  }

KD Updated by Koen Deforche about 15 years ago Actions #1

  • 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

KD Updated by Koen Deforche about 15 years ago Actions #2

  • Target version set to 3.1.10

KD Updated by Koen Deforche about 15 years ago Actions #3

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom