[vlc-devel] commit: Cosmetics. (Antoine Cellerier )

git version control git at videolan.org
Fri Sep 19 01:57:27 CEST 2008


vlc | branch: 0.9-bugfix | Antoine Cellerier <dionoea at videolan.org> | Fri Sep 19 01:53:38 2008 +0200| [c8e37b0fa1613c5a96464bdd14b328c3659d8e02] | committer: Antoine Cellerier 

Cosmetics.
(cherry picked from commit ef732d7dd224345f6391a6e8d30d1f1cb00169d5)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c8e37b0fa1613c5a96464bdd14b328c3659d8e02
---

 .../gui/qt4/components/playlist/playlist_item.cpp  |    4 ++--
 modules/gui/qt4/components/playlist/sorting.h      |    2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/playlist_item.cpp b/modules/gui/qt4/components/playlist/playlist_item.cpp
index 9020a7c..46f1cf5 100644
--- a/modules/gui/qt4/components/playlist/playlist_item.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_item.cpp
@@ -68,9 +68,9 @@ void PLItem::init( int _i_id, int _i_input_id, PLItem *parent, PLModel *m, QSett
         }
         else
         {
-            i_showflags = settings->value( "qt-pl-showflags", 38 ).toInt();
+            i_showflags = settings->value( "qt-pl-showflags", COLUMN_DEFAULT ).toInt();
             if( i_showflags < 1)
-                i_showflags = 38; /* reasonable default to show something; */
+                i_showflags = COLUMN_DEFAULT; /* reasonable default to show something; */
             else if ( i_showflags >= COLUMN_END )
                 i_showflags = COLUMN_END - 1; /* show everything */
 
diff --git a/modules/gui/qt4/components/playlist/sorting.h b/modules/gui/qt4/components/playlist/sorting.h
index cf72337..bcbdf8c 100644
--- a/modules/gui/qt4/components/playlist/sorting.h
+++ b/modules/gui/qt4/components/playlist/sorting.h
@@ -39,6 +39,8 @@ enum
     COLUMN_END          = 0x0200
 };
 
+#define COLUMN_DEFAULT (COLUMN_TITLE|COLUMN_DURATION|COLUMN_ALBUM)
+
 /* Return the title of a column */
 static const char * psz_column_title( uint32_t i_column )
 {




More information about the vlc-devel mailing list