X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fqt4%2Fcomponents%2Fplaylist%2Fplaylist_item.cpp;h=2c9fd9a4d52f5e28f0fb3511f58972c2c2ec4264;hb=dd99cec11682b1f038dd2804c02413eb17334966;hp=bb6745f2233316f193b56e227028e72cc110678f;hpb=d1f0a4fd867b1a2ecbc51aa0cd9cb6a1c2cc8ae6;p=vlc diff --git a/modules/gui/qt4/components/playlist/playlist_item.cpp b/modules/gui/qt4/components/playlist/playlist_item.cpp index bb6745f223..2c9fd9a4d5 100644 --- a/modules/gui/qt4/components/playlist/playlist_item.cpp +++ b/modules/gui/qt4/components/playlist/playlist_item.cpp @@ -69,7 +69,9 @@ void PLItem::init( int _i_id, int _i_input_id, PLItem *parent, PLModel *m ) else { QSettings settings( "vlc", "vlc-qt-interface" ); - i_showflags = settings.value( "qt-pl-showflags" ).toInt(); + i_showflags = settings.value( "qt-pl-showflags", 39 ).toInt(); + if( i_showflags < 1) + i_showflags = 39; //reasonable default to show something; updateColumnHeaders(); } } @@ -113,6 +115,9 @@ void PLItem::updateColumnHeaders() { switch( i_index ) { + case VLC_META_ENGINE_TRACKID: + item_col_strings.append( qtr( VLC_META_TRACKID ) ); + break; case VLC_META_ENGINE_ARTIST: item_col_strings.append( qtr( VLC_META_ARTIST ) ); break; @@ -134,9 +139,6 @@ void PLItem::updateColumnHeaders() case VLC_META_ENGINE_SEQ_NUM: item_col_strings.append( qtr( VLC_META_SEQ_NUM ) ); break; - case VLC_META_ENGINE_RATING: - item_col_strings.append( qtr( VLC_META_RATING ) ); - break; default: break; } @@ -253,8 +255,9 @@ void PLItem::update( playlist_item_t *p_item, bool iscurrent ) case VLC_META_ENGINE_SEQ_NUM: ADD_META( p_item, TrackNum ); break; - case VLC_META_ENGINE_RATING: - ADD_META( p_item, Rating ); + case VLC_META_ENGINE_TRACKID: + item_col_strings.append( QString::number( p_item->i_id ) ); + break; default: break; }