void AnalysisObject_Impl::disconnectChild(AnalysisObject& child,bool clearParent) const { if (clearParent) { child.clearParent(); } disconnect(this, &AnalysisObject_Impl::clean, child.getImpl<detail::AnalysisObject_Impl>().get(), &detail::AnalysisObject_Impl::onParentClean); bool disconnected = child.disconnect(SIGNAL(changed(ChangeType)), this, SLOT(onChildChanged(ChangeType))); OS_ASSERT(disconnected); }
void AnalysisObject_Impl::disconnectChild(AnalysisObject& child) const { child.clearParent(); bool disconnected = disconnect(SIGNAL(clean()), child.getImpl<detail::AnalysisObject_Impl>().get(), SLOT(onParentClean())); BOOST_ASSERT(disconnected); disconnected = child.disconnect(SIGNAL(changed(ChangeType)), this, SLOT(onChildChanged(ChangeType))); BOOST_ASSERT(disconnected); }