[vlc-commits] commit: Qt, Mac: use the classical blue for the selector ( Jean-Baptiste Kempf )

git at videolan.org git at videolan.org
Tue Nov 30 17:50:18 CET 2010


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Nov 30 17:49:31 2010 +0100| [3c5ad8a6acecbfc746ea6b3e564e377288fa5f0c] | committer: Jean-Baptiste Kempf 

Qt, Mac: use the classical blue for the selector

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

 modules/gui/qt4/components/playlist/selector.cpp |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/selector.cpp b/modules/gui/qt4/components/playlist/selector.cpp
index 66321a0..88a4e51 100644
--- a/modules/gui/qt4/components/playlist/selector.cpp
+++ b/modules/gui/qt4/components/playlist/selector.cpp
@@ -38,6 +38,7 @@
 #include <QTreeWidgetItem>
 #include <QHBoxLayout>
 #include <QPainter>
+#include <QPalette>
 
 #include <vlc_playlist.h>
 #include <vlc_services_discovery.h>
@@ -139,6 +140,13 @@ 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
+    QPalette palette;
+    palette.setColor( QPalette::Window, QColor(209,215,226) );
+    setPalette( palette );
+#endif
 }
 
 PLSelector::~PLSelector()



More information about the vlc-commits mailing list