ui/uiengine/model/mediamodel/src/glxmediamodel.cpp
changeset 71 27f2d7aec52a
parent 69 45459746d5e8
equal deleted inserted replaced
69:45459746d5e8 71:27f2d7aec52a
   400         }
   400         }
   401         return itemImage;
   401         return itemImage;
   402     }    
   402     }    
   403 }
   403 }
   404 
   404 
   405 void GlxMediaModel::itemUpdated( int mlIndex, GlxTBContextType tbContextType )
   405 void GlxMediaModel::itemUpdated( int itemIndex, GlxTBContextType tbContextType )
   406 {
   406 {
   407     qDebug( "GlxMediaModel::itemUpdated %d", mlIndex );
   407     qDebug( "GlxMediaModel::itemUpdated %d", itemIndex );
   408     //clear the grid and FS cache if they have any icons with them for that index
   408     //clear the grid and FS cache if they have any icons with them for that index
   409     if ( tbContextType == GlxTBContextGrid ) {
   409     if ( tbContextType == GlxTBContextGrid ) {
   410         if ( !thumbnailPopulatedFlag ) {
   410         if ( !thumbnailPopulatedFlag ) {
   411             thumbnailPopulatedCheck( mlIndex );
   411             thumbnailPopulatedCheck( itemIndex );
   412         }
   412         }
   413         itemIconCache.remove( mlIndex );
   413         itemIconCache.remove( itemIndex );
       
   414         emit dataChanged( index( itemIndex, 0 ), index( itemIndex, 0 ) );
   414     }
   415     }
   415     if ( tbContextType == GlxTBContextLsFs || tbContextType == GlxTBContextPtFs ) {
   416     if ( tbContextType == GlxTBContextLsFs || tbContextType == GlxTBContextPtFs ) {
   416         itemFsIconCache.remove( mlIndex );
   417         itemFsIconCache.remove( itemIndex );
   417     }
   418         emit fullScreenDataChanged( index( itemIndex, 0 ), index( itemIndex, 0 ) );
   418     emit dataChanged( index( mlIndex, 0 ), index( mlIndex, 0 ) );
   419     }
   419 }
   420 }
   420 
   421 
   421 void GlxMediaModel::itemCorrupted( int itemIndex )
   422 void GlxMediaModel::itemCorrupted( int itemIndex )
   422 {
   423 {
   423     qDebug( "GlxMediaModel::itemCorrupted %d", itemIndex );
   424     qDebug( "GlxMediaModel::itemCorrupted %d", itemIndex );
   424     if ( !thumbnailPopulatedFlag ) {
   425     if ( !thumbnailPopulatedFlag ) {
   425         thumbnailPopulatedCheck( itemIndex );
   426         thumbnailPopulatedCheck( itemIndex );
   426     }
   427     }
   427     emit dataChanged( index( itemIndex, 0 ), index( itemIndex, 0 ) );
   428     emit dataChanged( index( itemIndex, 0 ), index( itemIndex, 0 ) );
       
   429     emit fullScreenDataChanged( index( itemIndex, 0 ), index( itemIndex, 0 ) );
   428 }
   430 }
   429 
   431 
   430 void GlxMediaModel::modelpopulated()
   432 void GlxMediaModel::modelpopulated()
   431 {
   433 {
   432     if ( mTempVisibleWindowIndex != -1 ) {
   434     if ( mTempVisibleWindowIndex != -1 ) {