[vlc-commits] commit: Qt: playlist look fixes (Jean-Baptiste Kempf )

git at videolan.org git at videolan.org
Thu Dec 9 00:37:05 CET 2010


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Dec  9 00:30:59 2010 +0100| [2e16b1daa8e3065151d7d24393eecafadfbfe198] | committer: Jean-Baptiste Kempf 

Qt: playlist look fixes

- setContentMargin is the same on all platforms
- color fixes on Linux

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

 modules/gui/qt4/components/playlist/playlist.cpp |    5 +----
 modules/gui/qt4/components/playlist/selector.cpp |    2 +-
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/playlist.cpp b/modules/gui/qt4/components/playlist/playlist.cpp
index f857d18..79fb57f 100644
--- a/modules/gui/qt4/components/playlist/playlist.cpp
+++ b/modules/gui/qt4/components/playlist/playlist.cpp
@@ -47,11 +47,8 @@
 PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par )
                : QWidget( _par ), p_intf ( _p_i )
 {
-#ifndef Q_WS_MAC
-    setContentsMargins( 3, 3, 3, 3 );
-#else
+
     setContentsMargins( 0, 3, 0, 3 );
-#endif
 
     QGridLayout *layout = new QGridLayout( this );
 
diff --git a/modules/gui/qt4/components/playlist/selector.cpp b/modules/gui/qt4/components/playlist/selector.cpp
index 88a4e51..8b49d49 100644
--- a/modules/gui/qt4/components/playlist/selector.cpp
+++ b/modules/gui/qt4/components/playlist/selector.cpp
@@ -141,8 +141,8 @@ PLSelector::PLSelector( QWidget *p, intf_thread_t *_p_intf )
     /* select the first item */
 //  view->setCurrentIndex( model->index( 0, 0, QModelIndex() ) );
 
-    setAutoFillBackground( true );
 #ifdef Q_WS_MAC
+    setAutoFillBackground( true );
     QPalette palette;
     palette.setColor( QPalette::Window, QColor(209,215,226) );
     setPalette( palette );



More information about the vlc-commits mailing list