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

void MediaItemModel::reload (  )  [slot]

Reloads the information in the current model.

Definition at line 155 of file mediaitemmodel.cpp.

References clearMediaListData(), load(), loadSources(), MediaListProperties::lri, and mediaList().

{
    m_reload = true;
    if (m_loadSources) {
        // If the model was populated using loadSource then reload 
        QList<MediaItem> mediaList = m_mediaListForLoadSources;
        clearMediaListData();
        loadSources(mediaList);
    } else if (!m_mediaListProperties.lri.isEmpty()) {
        clearMediaListData();
        m_forceRefreshFromSource = true;
        load();
    }
}


Generated by  Doxygen 1.6.0   Back to index