Project

General

Profile

Actions

Bug #1503

closed

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

Added by Stefan Ruppert over 11 years ago. Updated over 11 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
Actions #1

Updated by Stefan Ruppert over 11 years ago

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

Actions #2

Updated by Koen Deforche over 11 years ago

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

Updated by Koen Deforche over 11 years ago

  • 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

Updated by Stefan Ruppert over 11 years ago

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

Actions #5

Updated by Koen Deforche over 11 years ago

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

Actions #6

Updated by Stefan Ruppert over 11 years ago

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

Actions #7

Updated by Stefan Ruppert over 11 years ago

Hi Koen,

with your latest changes it works as expected!

Thanks,

Stefan

Actions #8

Updated by Koen Deforche over 11 years ago

  • Status changed from Feedback to Resolved
Actions #9

Updated by Koen Deforche over 11 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF