Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

QByteArray & QByteArray::append ( char  ch  ) 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Appends the character ch to this byte array.

Definition at line 1552 of file qbytearray.cpp.

Referenced by Q3CString::append(), append(), QMetaObject::invokeMethod(), operator+=(), prepend(), push_back(), Q3IconView::rebuildContainers(), QUrl::setEncodedUrl(), Q3UriDrag::setUris(), and Q3IconView::updateItemContainer().

{
    if (d->ref != 1 || d->size + 1 > d->alloc)
        realloc(qAllocMore(d->size + 1, sizeof(Data)));
    d->data[d->size++] = ch;
    d->data[d->size] = '\0';
    return *this;
}


Generated by  Doxygen 1.6.0   Back to index