Project

General

Profile

Bug #841

exposedSignals_ does not track id changes

Added by Wim Dumon over 10 years ago. Updated over 10 years ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
-
Start date:
05/30/2011
Due date:
% Done:

0%

Estimated time:

Description

When an object ID is changed, the exposedSignals list is not appropriately updated for JSignals.

Testcase: in TreeviewDragDrop.C, add a setId("myid") call right after the instantiation of the WTreeView object.

Error output reports:

"decodeSignal(): signal 'myid.itemEvent' not exposed"

#1

Updated by Koen Deforche over 10 years ago

There are several problems with calling setId() on complex widgets such as WTableView and WTreeView:

  • JSignal's (as above), this is rather easy to fix
  • css rules private to the widget, this is somewhat harder to fix

It's opening pandora's box. Is this for testing purposes? But it is nowhere defined (or even trivial) to disect how these widgets are composed. I'ld rather argue to set id's in WItemDelegate to supervise the contents in a test environment ?

koen

Also available in: Atom PDF