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

void MediaItemModel::updateMediaItem ( MediaItem  mediaItem  )  [slot]

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

mediaItem MediaItem 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 446 of file mediaitemmodel.cpp.

References replaceMediaItemAt(), rowOfUrl(), and MediaItem::url.

Referenced by updateMediaItems().

    int row = rowOfUrl(mediaItem.url);
    if (row != -1) {
        replaceMediaItemAt(row, mediaItem);

Generated by  Doxygen 1.6.0   Back to index