]> git.sesse.net Git - vlc/commitdiff
Qt, Mac: reduce the size margins and change the color of the Splitter
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 30 Nov 2010 17:06:01 +0000 (18:06 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 30 Nov 2010 17:06:01 +0000 (18:06 +0100)
modules/gui/qt4/components/playlist/playlist.cpp

index 8f26d7ed65565fb3cdf5ae3a8838b017603b920c..9ec11a6ad99d5eb7104586443c49c76b48ed067a 100644 (file)
 PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par )
                : QSplitter( _par ), p_intf ( _p_i )
 {
+#ifndef Q_WS_MAC
     setContentsMargins( 3, 3, 3, 3 );
+#else
+    setContentsMargins( 0, 3, 0, 3 );
+#endif
 
     /*******************
      * Left            *
@@ -434,7 +438,7 @@ QSize SplitterHandle::sizeHint() const
 
 void SplitterHandle::paintEvent(QPaintEvent *event)
 {
-    QPainter painter(this);
-    painter.fillRect(event->rect(), QBrush(Qt::gray));
+    QPainter painter( this );
+    painter.fillRect( event->rect(), QColor(81, 81, 81) );
 }
 #endif /* __APPLE__ */