コード例 #1
0
ファイル: StdLayoutImpl.C プロジェクト: bvanhauwaert/wt
void StdLayoutImpl::setContainer(WContainerWidget *c)
{
  for (int i = c->count(); i > 0; --i) {
    /*
     * See original remark: 94337b3e062f925ba8e7afc74059a41f8488bb75
     * But, this should only be done if the widget is not part
     * of the layout
     */
    WWidget *w = c->widget(i - 1);
    if (!layout_->findWidgetItem(w))
	c->removeWidget(w);
  }

  container_ = c;
  containerAddWidgets(container_);
}
コード例 #2
0
ファイル: StdWidgetItemImpl.C プロジェクト: 913862627/wt
StdWidgetItemImpl::~StdWidgetItemImpl()
{
  containerAddWidgets(0);
}