bool WWidget::isInLayout() const { WWidget *p = parent(); if (p != 0 && (dynamic_cast<WCompositeWidget *>(p) != 0 || !p->javaScriptMember(WT_RESIZE_JS).empty())) return p->isInLayout(); WContainerWidget *c = dynamic_cast<WContainerWidget *>(p); return c != 0 && c->layout() != 0; }
WContainerWidget *WDialog::footer() const { if (!footer_) { footer_ = new WContainerWidget(); WApplication::instance()->theme()->apply(const_cast<WDialog *>(this), footer_, DialogFooterRole); WContainerWidget *layoutContainer = impl_->resolve<WContainerWidget *>("layout"); layoutContainer->layout()->addWidget(footer_); } return footer_; }