Project

General

Profile

Actions

Bug #925

closed
ZS KD

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

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

Added by Zhimin Song about 15 years ago. Updated almost 15 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

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

  • Status changed from New to InProgress
  • Assignee set to Koen Deforche

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

  • 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

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

  • Status changed from Resolved to Closed

Resolved in Wt 3.1.11

Actions

Also available in: PDF Atom