Hello!
Virtual function populate() in WTreeNode called for all children
nodes, ignoring LazyLoading. The reason was found in method update().
In line 520, block conditions are not surrounded by curly brackets:
if (!parentNode() || parentNode()->isExpanded())
if (childCountPolicy_ == Enabled && !populated_)
doPopulate();
if (!expandable()) {
if (noExpandIcon_->parent() == 0) {
layout_->elementAt(0, 0)->addWidget(noExpandIcon_);
layout_->elementAt(0, 0)->removeWidget(expandIcon_);
}
} else {
if (expandIcon_->parent() == 0) {
layout_->elementAt(0, 0)->addWidget(expandIcon_);
layout_->elementAt(0, 0)->removeWidget(noExpandIcon_);
}
}
Should be:
if (!parentNode() || parentNode()->isExpanded())
{
if (childCountPolicy_ == Enabled && !populated_)
doPopulate();
if (!expandable()) {
if (noExpandIcon_->parent() == 0) {
layout_->elementAt(0, 0)->addWidget(noExpandIcon_);
layout_->elementAt(0, 0)->removeWidget(expandIcon_);
}
} else {
if (expandIcon_->parent() == 0) {
layout_->elementAt(0, 0)->addWidget(expandIcon_);
layout_->elementAt(0, 0)->removeWidget(noExpandIcon_);
}
}
}
Regards,
Aleksey
------------------------------------------------------------------------------
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest