Bug #1503
closedwt-3.2.3-rc2 WTableView Header is not rendered disabled if parent is disabled
0%
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
Updated by Stefan Ruppert about 12 years ago
Also the header within the WTableView is clickable if a column can be sorted.
Updated by Koen Deforche about 12 years ago
- Status changed from New to InProgress
- Assignee set to Michael Vilsker
- Target version set to 3.2.3
Updated by Koen Deforche about 12 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 about 12 years ago
- File Wt-Table-Not-Disabled-Attribute-Descending.png Wt-Table-Not-Disabled-Attribute-Descending.png added
- File Wt-Table-Not-Disabled-Attribute-Ascending.png Wt-Table-Not-Disabled-Attribute-Ascending.png added
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
Updated by Koen Deforche about 12 years ago
- File panelDisabled.cpp panelDisabled.cpp added
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
Updated by Stefan Ruppert about 12 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
Updated by Stefan Ruppert about 12 years ago
Hi Koen,
with your latest changes it works as expected!
Thanks,
Stefan
Updated by Koen Deforche about 12 years ago
- Status changed from Feedback to Resolved
Updated by Koen Deforche about 12 years ago
- Status changed from Resolved to Closed