void coBackground::removeElement(coUIElement *el) { if (el->getDCS() && getDCS()) { getDCS()->removeChild(el->getDCS()); } coUIContainer::removeElement(el); childResized(); }
void coBackground::addElement(coUIElement *el) { coUIContainer::addElement(el); if (el->getDCS()) { getDCS()->addChild(el->getDCS()); } childResized(false); }
void MathDisplay::buildWidget() { l_main = new QVBoxLayout; mathwidget = new MATHWIDGET(context); connect(mathwidget, SIGNAL(resized()), this, SLOT(childResized())); connect(mathwidget, SIGNAL(s_renderAvailable(const bool&)), this, SLOT(renderAvailable(const bool&))); l_main->addWidget(mathwidget); l_main->setAlignment(Qt::AlignCenter); setLayout(l_main); buildActions(); }