1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 15:59:42 +01:00

* Style fixes in SourceTreeView.

This commit is contained in:
Christian Muehlhaeuser 2013-06-13 10:23:40 +02:00
parent 6ea6628ff0
commit e9eb1874e1

View File

@ -29,7 +29,6 @@
#include "SourceDelegate.h"
#include "sourcetree/items/PlaylistItems.h"
#include "sourcetree/items/SourceItem.h"
#include "audio/AudioEngine.h"
#include "SourcePlaylistInterface.h"
#include "TomahawkSettings.h"
#include "GlobalActionManager.h"
@ -870,10 +869,11 @@ SourceTreeView::drawRow( QPainter* painter, const QStyleOptionViewItem& option,
QTreeView::drawRow( painter, option, index );
}
void
SourceTreeView::drawBranches( QPainter *painter, const QRect &rect, const QModelIndex &index ) const
SourceTreeView::drawBranches( QPainter* painter, const QRect& rect, const QModelIndex& index ) const
{
if( !QString( qApp->style()->metaObject()->className() ).toLower().contains( "qtcurve" ) )
if ( !QString( qApp->style()->metaObject()->className() ).toLower().contains( "qtcurve" ) )
QTreeView::drawBranches( painter, rect, index );
}
@ -891,7 +891,7 @@ SourceTreeView::itemFromIndex( const QModelIndex& index ) const
void
SourceTreeView::update( const QModelIndex &index )
SourceTreeView::update( const QModelIndex& index )
{
dataChanged( index, index );
}