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

template<ObjectDescriptionType type>
QList<ObjectDescription<type> > Phonon::ObjectDescriptionModel< type >::modelData (  )  const [inline]

Returns the model data.

As the order of the list might have changed this can be different to what was set using setModelData().

Definition at line 310 of file objectdescriptionmodel.h.

References Phonon::ObjectDescriptionModel< type >::data(), and Phonon::ObjectDescriptionModelData::modelData().

                                                                     { //krazy:exclude=inline
                QList<ObjectDescription<type> > ret;
                QList<QExplicitlySharedDataPointer<ObjectDescriptionData> > list = d->modelData();
                Q_FOREACH (const QExplicitlySharedDataPointer<ObjectDescriptionData> &data, list) {
                    ret << ObjectDescription<type>(data);
                }
                return ret;
            }


Generated by  Doxygen 1.6.0   Back to index