]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/playlist/playlist_item.cpp
Move the track id from the last column to the first one in the playlist dialog and...
[vlc] / modules / gui / qt4 / components / playlist / playlist_item.cpp
index c0f394e1a91f52bc367851f2f3218ff9aec3dadd..2c9fd9a4d52f5e28f0fb3511f58972c2c2ec4264 100644 (file)
@@ -69,8 +69,8 @@ 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();
-            if( i_showflags < 1) 
+            i_showflags = settings.value( "qt-pl-showflags", 39 ).toInt();
+            if( i_showflags < 1)
                 i_showflags = 39; //reasonable default to show something;
             updateColumnHeaders();
         }
@@ -115,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;
@@ -136,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;
             }
@@ -255,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;
             }