inline void XmlNode::appendContents(std::ostream& ss) const { appendHead(ss); appendValue(ss); appendChildren(ss); appendTail(ss); }
void QOrmUsuarios::appendVentas(QOrmVentas *child) { m_ventas.append(child); appendChildren(child); emit ventasChanged(); }
void QOrmFormaPago::appendPago(QOrmPago *child) { m_pago.append(child); appendChildren(child); emit pagoChanged(); }
void QOrmRoles::appendUsuarios(QOrmUsuarios *child) { m_usuarios.append(child); appendChildren(child); emit usuariosChanged(); }
void QOrmUsuarios::appendLogs(QOrmLogs *child) { m_logs.append(child); appendChildren(child); emit logsChanged(); }
void QOrmRoles::appendPrivilegios(QOrmPrivilegios *child) { m_privilegios.append(child); appendChildren(child); emit privilegiosChanged(); }
static void appendChildren(List<Bodypart> *l, Bodypart *bp ) { l->append( bp ); List<Bodypart>::Iterator it( bp->children() ); while ( it ) { appendChildren( l, it ); ++it; } }
List<Bodypart> *Message::allBodyparts() const { List< Bodypart > * l = new List< Bodypart >; List<Bodypart>::Iterator it( children() ); while ( it ) { appendChildren( l, it ); ++it; } return l; }
void DiscoItemsModel::appendTopLevelItem(const Jid &AItemJid, const QString &AItemNode) { if (findIndex(AItemJid,AItemNode,FRootIndex,false).isEmpty()) { DiscoItemIndex *index = new DiscoItemIndex; index->itemJid = AItemJid; index->itemNode = AItemNode; appendChildren(FRootIndex, QList<DiscoItemIndex*>()<<index); fetchMore(modelIndex(index,0)); } }
void ComplexArrayData::setLength(uint newLength) { uint oldLength = mChildren.count(); if (newLength > oldLength) { mChildren.reserve(newLength); appendChildren(oldLength, newLength); } else if (newLength < oldLength) //XXX maybe keep some cached { qDeleteAll(mChildren.begin() + newLength, mChildren.end()); mChildren.resize(newLength); } //else nothing to do, length stays the same }
void ProjectPriceListParentItem::readXml10(QXmlStreamReader *reader, UnitMeasureModel * uml) { while( (!reader->atEnd()) && (!reader->hasError()) && !(reader->isEndElement() && reader->name().toString().toUpper() == "PRICELISTS") ){ reader->readNext(); if( reader->name().toString().toUpper() == "PRICELIST" && reader->isStartElement()) { if(appendChildren()){ m_d->priceListContainer.last()->readXml10( reader, uml ); } } } for( QList<PriceList*>::iterator i = m_d->priceListContainer.begin(); i != m_d->priceListContainer.end(); ++i ){ (*i)->loadTmpData10( this ); } }
void DomNode::appendChildren(T child, Rest... rest) { appendChild(child); appendChildren(rest...); }
void DomNode::replaceChildren(T... newChildren) { removeChildren(); appendChildren(newChildren...); }
ComplexArrayData::ComplexArrayData(unsigned int initialLength, DataInformation* data, ArrayDataInformation* parent): AbstractArrayData(data, parent) { mChildren.reserve(initialLength); appendChildren(0, initialLength); }