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

void MediaItemModel::removeMediaItem ( QString  url  )  [slot]

Remove MediaItem in model that matches the url specified.

url url of MediaItem to remove.
Note: This method only removes the information in the model. It does not remove information in the source from which the MediaItems were retrieved. Use removeSourceInfo() method to do that.

Definition at line 454 of file mediaitemmodel.cpp.

References removeMediaItemAt(), and rowOfUrl().

    int row = rowOfUrl(url);
    if (row != -1) {
        removeMediaItemAt(row, true);
        if (rowCount() == 0) {

Generated by  Doxygen 1.6.0   Back to index