Bug #14469 » fix-wgroupbox-children-not-rendered.patch
| src/Wt/WGroupBox.C | ||
|---|---|---|
|
void WGroupBox::setLogicalLayout(std::unique_ptr<WLayout> layout)
|
||
|
{
|
||
|
std::unique_ptr<WVBoxLayout> newLayout = std::make_unique<WVBoxLayout>();
|
||
|
logicalLayout_ = layout.get();
|
||
|
if (layout) {
|
||
|
std::unique_ptr<WVBoxLayout> newLayout = std::make_unique<WVBoxLayout>();
|
||
|
newLayout->addLayout(std::move(layout));
|
||
|
WContainerWidget::setLogicalLayout(std::move(newLayout));
|
||
|
}
|
||
|
WContainerWidget::setLogicalLayout(std::move(newLayout));
|
||
|
}
|
||
|
}
|
||
| src/Wt/WGroupBox.h | ||
|---|---|---|
|
private:
|
||
|
WString title_;
|
||
|
bool titleChanged_;
|
||
|
WLayout* logicalLayout_;
|
||
|
WLayout* logicalLayout_ = nullptr;
|
||
|
void init();
|
||