Project

General

Profile

Actions

Bug #1503

closed
SR KD

wt-3.2.3-rc2 WTableView Header is not rendered disabled if parent is disabled

Bug #1503: wt-3.2.3-rc2 WTableView Header is not rendered disabled if parent is disabled

Added by Stefan Ruppert almost 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
10/29/2012
Due date:
% Done:

0%

Estimated time:

Description

Hi,

we have some WPanel widgets which has some WTableView widgets inside. If the WPanel widget is disabled, the WTableView header is not rendered as disabled. See attached screenshot.


Files

Wt-Table-Not-Disabled.png (5.72 KB) Wt-Table-Not-Disabled.png Stefan Ruppert, 10/29/2012 05:18 PM
Wt-Table-Not-Disabled-Attribute-Descending.png (4.86 KB) Wt-Table-Not-Disabled-Attribute-Descending.png Stefan Ruppert, 10/30/2012 09:59 AM
Wt-Table-Not-Disabled-Attribute-Ascending.png (5.69 KB) Wt-Table-Not-Disabled-Attribute-Ascending.png Stefan Ruppert, 10/30/2012 09:59 AM
panelDisabled.cpp (2.46 KB) panelDisabled.cpp Koen Deforche, 10/30/2012 10:22 AM

SR Updated by Stefan Ruppert almost 14 years ago Actions #1

Also the header within the WTableView is clickable if a column can be sorted.

KD Updated by Koen Deforche almost 14 years ago Actions #2

  • Status changed from New to InProgress
  • Assignee set to Michael Vilsker
  • Target version set to 3.2.3

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

  • Status changed from InProgress to Feedback
  • Assignee changed from Michael Vilsker to Koen Deforche

Hey Stefan,

The table view does indeed not properly style when disabled, but I cannot reproduce the sorting misbehavior (I can't resort a disabled tableview) ?

Regards,
koen

SR Updated by Stefan Ruppert almost 14 years ago Actions #4

Hi Koen,

in disabled state our table view is empty therefore I cannot check if resorting is done or not. But the sorting indicators are changing if you click the header... See attached screenshots.

Stefan

Koen Deforche wrote:

Hey Stefan,

The table view does indeed not properly style when disabled, but I cannot reproduce the sorting misbehavior (I can't resort a disabled tableview) ?

Regards,
koen

KD Updated by Koen Deforche almost 14 years ago Actions #5

Hey Stefan,

I cannot reproduce that --- is there any widget between the panel and the tableview that is not propagating the disabled property ?

See also attached test-case.

I've already fixed the rendering in my git copy.

Regards,
koen

SR Updated by Stefan Ruppert almost 14 years ago Actions #6

Hi Koen,

i tested a little bit more and I can say the problem only exists directly after initialization. If the WPanel was enabled and disabled again I cannot click and change the sorting indicator anymore...

The WTableView is in a WContainerWidget with a WVBoxLayot and the WContainerWidget is passed to the WPanel::setCentralWidget().

WWidget *SideBar::createDataView()
{
   WContainerWidget *w = new WContainerWidget();
   WVBoxLayout* layout = new WVBoxLayout();
   mTransactionDataView = new SideBarTableView(mTransactionDataModel, layout);
   mTransactionDataView->setSelectable(true);
   layout->setContentsMargins(0, 0, 0, 0);
   layout->addWidget(mTransactionDataView, 1);
   w->setLayout(layout);

   WPanel *panel = new WPanel();
   panel->setTitle(WString::tr("sidebar-transaction-details-text"));
   panel->setCentralWidget(w);
   panel->setCollapsible(true);
   panel->addStyleClass("mypanel");
   return panel;
}

Hope that info helps.

Stefan

SR Updated by Stefan Ruppert almost 14 years ago Actions #7

Hi Koen,

with your latest changes it works as expected!

Thanks,
Stefan

KD Updated by Koen Deforche almost 14 years ago Actions #8

  • Status changed from Feedback to Resolved

KD Updated by Koen Deforche almost 14 years ago Actions #9

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom