Commit 7af51d10 authored by Rémi Duraffort's avatar Rémi Duraffort

Remove the Rating column from the inteface because with don't save any information about Rating.

parent 3cd17e7d
...@@ -136,9 +136,6 @@ void PLItem::updateColumnHeaders() ...@@ -136,9 +136,6 @@ void PLItem::updateColumnHeaders()
case VLC_META_ENGINE_SEQ_NUM: case VLC_META_ENGINE_SEQ_NUM:
item_col_strings.append( qtr( VLC_META_SEQ_NUM ) ); item_col_strings.append( qtr( VLC_META_SEQ_NUM ) );
break; break;
case VLC_META_ENGINE_RATING:
item_col_strings.append( qtr( VLC_META_RATING ) );
break;
case VLC_META_ENGINE_TRACKID: case VLC_META_ENGINE_TRACKID:
item_col_strings.append( qtr( VLC_META_TRACKID ) ); item_col_strings.append( qtr( VLC_META_TRACKID ) );
break; break;
...@@ -258,9 +255,6 @@ void PLItem::update( playlist_item_t *p_item, bool iscurrent ) ...@@ -258,9 +255,6 @@ void PLItem::update( playlist_item_t *p_item, bool iscurrent )
case VLC_META_ENGINE_SEQ_NUM: case VLC_META_ENGINE_SEQ_NUM:
ADD_META( p_item, TrackNum ); ADD_META( p_item, TrackNum );
break; break;
case VLC_META_ENGINE_RATING:
ADD_META( p_item, Rating );
break;
case VLC_META_ENGINE_TRACKID: case VLC_META_ENGINE_TRACKID:
item_col_strings.append( QString::number( p_item->i_id ) ); item_col_strings.append( QString::number( p_item->i_id ) );
break; break;
......
...@@ -735,7 +735,6 @@ void PLModel::sort( int column, Qt::SortOrder order ) ...@@ -735,7 +735,6 @@ void PLModel::sort( int column, Qt::SortOrder order )
CHECK_COLUMN( COLLECTION ); CHECK_COLUMN( COLLECTION );
CHECK_COLUMN( SEQ_NUM ); CHECK_COLUMN( SEQ_NUM );
CHECK_COLUMN( DESCRIPTION ); CHECK_COLUMN( DESCRIPTION );
CHECK_COLUMN( RATING );
CHECK_COLUMN( TRACKID ); CHECK_COLUMN( TRACKID );
#undef CHECK_COLUMN; #undef CHECK_COLUMN;
...@@ -756,7 +755,6 @@ next: ...@@ -756,7 +755,6 @@ next:
case VLC_META_ENGINE_COLLECTION: i_mode = SORT_ALBUM; break; case VLC_META_ENGINE_COLLECTION: i_mode = SORT_ALBUM; break;
case VLC_META_ENGINE_SEQ_NUM: i_mode = SORT_TRACK_NUMBER; break; case VLC_META_ENGINE_SEQ_NUM: i_mode = SORT_TRACK_NUMBER; break;
case VLC_META_ENGINE_DESCRIPTION:i_mode = SORT_DESCRIPTION; break; case VLC_META_ENGINE_DESCRIPTION:i_mode = SORT_DESCRIPTION; break;
case VLC_META_ENGINE_RATING: i_mode = SORT_RATING; break;
case VLC_META_ENGINE_TRACKID: i_mode = SORT_ID; break; case VLC_META_ENGINE_TRACKID: i_mode = SORT_ID; break;
default: i_mode = SORT_TITLE_NODES_FIRST;break; default: i_mode = SORT_TITLE_NODES_FIRST;break;
} }
...@@ -849,10 +847,8 @@ void PLModel::viewchanged( int meta ) ...@@ -849,10 +847,8 @@ void PLModel::viewchanged( int meta )
index=6; break; index=6; break;
case VLC_META_ENGINE_DESCRIPTION: case VLC_META_ENGINE_DESCRIPTION:
index=7; break; index=7; break;
case VLC_META_ENGINE_RATING:
index=8; break;
case VLC_META_ENGINE_TRACKID: case VLC_META_ENGINE_TRACKID:
index=9; break; index=8; break;
default: default:
break; break;
} }
......
...@@ -281,7 +281,6 @@ void StandardPLPanel::popupSelectColumn( QPoint pos ) ...@@ -281,7 +281,6 @@ void StandardPLPanel::popupSelectColumn( QPoint pos )
ADD_META_ACTION( COLLECTION ); ADD_META_ACTION( COLLECTION );
ADD_META_ACTION( SEQ_NUM ); ADD_META_ACTION( SEQ_NUM );
ADD_META_ACTION( DESCRIPTION ); ADD_META_ACTION( DESCRIPTION );
ADD_META_ACTION( RATING );
ADD_META_ACTION( TRACKID ); ADD_META_ACTION( TRACKID );
#undef ADD_META_ACTION #undef ADD_META_ACTION
......
...@@ -197,10 +197,6 @@ static int playlist_ItemArraySort( playlist_t *p_playlist, int i_items, ...@@ -197,10 +197,6 @@ static int playlist_ItemArraySort( playlist_t *p_playlist, int i_items,
{ {
DO_META_SORT( Description ); DO_META_SORT( Description );
} }
else if( i_mode == SORT_RATING )
{
DO_META_SORT( Rating );
}
else if( i_mode == SORT_ID ) else if( i_mode == SORT_ID )
{ {
i_test = pp_items[i]->i_id - pp_items[i_small]->i_id; i_test = pp_items[i]->i_id - pp_items[i_small]->i_id;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment