Exemplo n.º 1
0
inline void XmlNode::appendContents(std::ostream& ss) const
{
    appendHead(ss);
    appendValue(ss);
    appendChildren(ss);
    appendTail(ss);
}
Exemplo n.º 2
0
void QOrmUsuarios::appendVentas(QOrmVentas *child)
{
    m_ventas.append(child);

    appendChildren(child);
    emit ventasChanged();
}
Exemplo n.º 3
0
void QOrmFormaPago::appendPago(QOrmPago *child)
{
    m_pago.append(child);

    appendChildren(child);
    emit pagoChanged();
}
Exemplo n.º 4
0
void QOrmRoles::appendUsuarios(QOrmUsuarios *child)
{
    m_usuarios.append(child);

    appendChildren(child);
    emit usuariosChanged();
}
Exemplo n.º 5
0
void QOrmUsuarios::appendLogs(QOrmLogs *child)
{
    m_logs.append(child);

    appendChildren(child);
    emit logsChanged();
}
Exemplo n.º 6
0
void QOrmRoles::appendPrivilegios(QOrmPrivilegios *child)
{
    m_privilegios.append(child);

    appendChildren(child);
    emit privilegiosChanged();
}
Exemplo n.º 7
0
static void appendChildren(List<Bodypart> *l, Bodypart *bp )
{
    l->append( bp );
    List<Bodypart>::Iterator it( bp->children() );
    while ( it ) {
        appendChildren( l, it );
        ++it;
    }
}
Exemplo n.º 8
0
List<Bodypart> *Message::allBodyparts() const
{
    List< Bodypart > * l = new List< Bodypart >;
    List<Bodypart>::Iterator it( children() );
    while ( it ) {
        appendChildren( l, it );
        ++it;
    }
    return l;
}
Exemplo n.º 9
0
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));
	}
}
Exemplo n.º 10
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
}
Exemplo n.º 11
0
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 );
    }
}
Exemplo n.º 12
0
void DomNode::appendChildren(T child, Rest... rest)
{
	appendChild(child);
	appendChildren(rest...);
}
Exemplo n.º 13
0
void DomNode::replaceChildren(T... newChildren)
{
	removeChildren();
	appendChildren(newChildren...);
}
Exemplo n.º 14
0
ComplexArrayData::ComplexArrayData(unsigned int initialLength, DataInformation* data,
                                   ArrayDataInformation* parent): AbstractArrayData(data, parent)
{
    mChildren.reserve(initialLength);
    appendChildren(0, initialLength);
}