Project

General

Profile

Actions

Bug #925

closed

WTableView::setColumnHidden() in the case of WWidget *hc = headerWidget(column)

Added by Zhimin Song over 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
07/24/2011
Due date:
% Done:

0%

Estimated time:

Description

hi, Wt group:

Continuing with the #788, I found another problem at row838:

WWidget *hc = headerWidget(column)

row838 invokes headerWidget(int column, bool contentsOnly) at row1026, the real problem is bool contentsOnly at row1042-1045

  if (result && contentsOnly)
    return result->find("contents");
  else
    return result;

I found result->find("contents") returns a empty WContainerWidget(*w) at the WAbstractItemView.C row937-938 as below:

  WContainerWidget *w = new WContainerWidget();
  w->setObjectName("contents");

All these lead to a situation:

When dynamically control(such as by Hide or Show button) the visibilities of some columns which have been rendered, the columns would hide or show corrently and header could change width correctly, but with no header data(header name).

in my test :

WWidget *hc = headerWidget(column, false)

is ok.

BR

Zhimin

Actions #1

Updated by Koen Deforche over 13 years ago

  • Status changed from New to InProgress
  • Assignee set to Koen Deforche
Actions #2

Updated by Koen Deforche over 13 years ago

  • Status changed from InProgress to Resolved
  • Target version set to 3.1.11

Hey Zhimin,

Indeed, and that sounds like a proper fix. Thanks.

Regards,

koen

Actions #3

Updated by Koen Deforche about 13 years ago

  • Status changed from Resolved to Closed

Resolved in Wt 3.1.11

Actions

Also available in: Atom PDF