mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
Merge pull request #108 from teo/master
Workaround to force QtCurve to not draw branching primitives in SourceTreeView
This commit is contained in:
@@ -838,6 +838,13 @@ SourceTreeView::drawRow( QPainter* painter, const QStyleOptionViewItem& option,
|
|||||||
QTreeView::drawRow( painter, option, index );
|
QTreeView::drawRow( painter, option, index );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
SourceTreeView::drawBranches( QPainter *painter, const QRect &rect, const QModelIndex &index ) const
|
||||||
|
{
|
||||||
|
if( !QString( qApp->style()->metaObject()->className() ).toLower().contains( "qtcurve" ) )
|
||||||
|
QTreeView::drawBranches( painter, rect, index );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
template< typename T > T*
|
template< typename T > T*
|
||||||
SourceTreeView::itemFromIndex( const QModelIndex& index ) const
|
SourceTreeView::itemFromIndex( const QModelIndex& index ) const
|
||||||
|
@@ -89,6 +89,7 @@ private slots:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
void drawRow( QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index ) const;
|
void drawRow( QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index ) const;
|
||||||
|
void drawBranches( QPainter *painter, const QRect &rect, const QModelIndex &index ) const;
|
||||||
|
|
||||||
virtual void paintEvent( QPaintEvent* event );
|
virtual void paintEvent( QPaintEvent* event );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user