Logo Search packages:      
Sourcecode: bangarang version File versions  Download package

void MediaItemModel::updateMediaItems ( QList< MediaItem mediaList  )  [slot]

Update MediaItems contained in the model to those in the specified list of MediaItems. Only MediaItems in the model whose url matches those in the list of MediaItems will be updated.

Parameters:
mediaList List of MediaItems with updated information.
Note: This method only updates the information in the model. It does not update the source from which the MediaItems were retrieved. Use updateSourceInfo() method to do that.

Definition at line 438 of file mediaitemmodel.cpp.

References updateMediaItem().

{
    for (int i = 0; i < mediaList.count(); i++) {
        MediaItem mediaItem = mediaList.at(i);
        updateMediaItem(mediaItem);
    }
}


Generated by  Doxygen 1.6.0   Back to index