mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
* Style fixes in SourceTreeView.
This commit is contained in:
@@ -29,7 +29,6 @@
|
|||||||
#include "SourceDelegate.h"
|
#include "SourceDelegate.h"
|
||||||
#include "sourcetree/items/PlaylistItems.h"
|
#include "sourcetree/items/PlaylistItems.h"
|
||||||
#include "sourcetree/items/SourceItem.h"
|
#include "sourcetree/items/SourceItem.h"
|
||||||
#include "audio/AudioEngine.h"
|
|
||||||
#include "SourcePlaylistInterface.h"
|
#include "SourcePlaylistInterface.h"
|
||||||
#include "TomahawkSettings.h"
|
#include "TomahawkSettings.h"
|
||||||
#include "GlobalActionManager.h"
|
#include "GlobalActionManager.h"
|
||||||
@@ -870,10 +869,11 @@ SourceTreeView::drawRow( QPainter* painter, const QStyleOptionViewItem& option,
|
|||||||
QTreeView::drawRow( painter, option, index );
|
QTreeView::drawRow( painter, option, index );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
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 );
|
QTreeView::drawBranches( painter, rect, index );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -891,7 +891,7 @@ SourceTreeView::itemFromIndex( const QModelIndex& index ) const
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
SourceTreeView::update( const QModelIndex &index )
|
SourceTreeView::update( const QModelIndex& index )
|
||||||
{
|
{
|
||||||
dataChanged( index, index );
|
dataChanged( index, index );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user