vlc | branch: master | Jean-Baptiste Kempf <[email protected]> | Tue Nov 30 18:06:01 2010 +0100| [72a691d8bd3d6707ea279511a214cef5960c46aa] | committer: Jean-Baptiste Kempf
Qt, Mac: reduce the size margins and change the color of the Splitter > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=72a691d8bd3d6707ea279511a214cef5960c46aa --- modules/gui/qt4/components/playlist/playlist.cpp | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/gui/qt4/components/playlist/playlist.cpp b/modules/gui/qt4/components/playlist/playlist.cpp index 8f26d7e..9ec11a6 100644 --- a/modules/gui/qt4/components/playlist/playlist.cpp +++ b/modules/gui/qt4/components/playlist/playlist.cpp @@ -45,7 +45,11 @@ 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__ */ _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
