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

void MediaItemModel::loadMediaItem ( const MediaItem mediaItem,
bool  emitMediaListChanged = false 

Loads a MediaItem directly into the model

mediaItem MediaItem to load
Note: After using this method, MediaListProperties returned by mediaListProperties() is likely stale. MediaListProperties.lri should either be updated to correspond to mediaList or set to QString().

Definition at line 189 of file mediaitemmodel.cpp.

References mediaListChanged().

Referenced by Playlist::addMediaItem(), Playlist::addMediaList(), loadMediaList(), and loadSources().

    m_mediaList << mediaItem;
    m_urlList << mediaItem.url;
    if (emitMediaListChanged) {
        emit mediaListChanged();

Generated by  Doxygen 1.6.0   Back to index