1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-11 16:44:05 +02:00

Don't style ContextView's scrollbar on OSX.

This commit is contained in:
Christian Muehlhaeuser
2015-10-29 03:05:50 +01:00
parent 6f3b4b4522
commit f7c3f25d8e

View File

@@ -51,7 +51,9 @@ ContextView::ContextView( QWidget* parent, const QString& caption )
m_trackView->setPlaylistItemDelegate( del );
m_trackView->proxyModel()->setStyle( PlayableProxyModel::SingleColumn );
m_trackView->setStyleSheet( QString( "QTreeView { background-color: %1; }" ).arg( TomahawkStyle::PAGE_BACKGROUND.name() ) );
#ifndef Q_OS_MAC
TomahawkStyle::styleScrollBar( m_trackView->verticalScrollBar() );
#endif
setLayout( new QVBoxLayout() );
TomahawkUtils::unmarginLayout( layout() );
@@ -122,7 +124,9 @@ ContextView::setTrackView( TrackView* view )
m_trackView = view;
m_trackView->setStyleSheet( QString( "QTreeView { background-color: %1; }" ).arg( TomahawkStyle::PAGE_BACKGROUND.name() ) );
#ifndef Q_OS_MAC
TomahawkStyle::styleScrollBar( m_trackView->verticalScrollBar() );
#endif
m_innerLayout->insertWidget( 0, view, 1 );