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

void QObject::setUserData ( uint  id,
QObjectUserData *  data 
) [inherited]

For internal use only.

Definition at line 3205 of file qobject.cpp.

{
    Q_D(QObject);
    if (!d->extraData)
        d->extraData = new QObjectPrivate::ExtraData;

    if (d->extraData->userData.size() <= (int) id)
        d->extraData->userData.resize((int) id + 1);
    d->extraData->userData[id] = data;
}


Generated by  Doxygen 1.6.0   Back to index