Commit b19a369a authored by Jakob Leben's avatar Jakob Leben

Qt: use styled item highlighting in playlist icon view

parent ed9cd68c
......@@ -28,6 +28,7 @@
#include <QPainter>
#include <QRect>
#include <QStyleOptionViewItem>
#include <QApplication>
#include "assert.h"
......@@ -39,8 +40,9 @@ void PlListViewItemDelegate::paint( QPainter * painter, const QStyleOptionViewIt
{
painter->setRenderHint( QPainter::Antialiasing );
if( option.state & QStyle::State_Selected )
painter->fillRect(option.rect, option.palette.highlight());
/*if( option.state & QStyle::State_Selected )
painter->fillRect(option.rect, option.palette.highlight());*/
QApplication::style()->drawPrimitive( QStyle::PE_PanelItemViewItem, &option, painter );
PLItem *currentItem = static_cast<PLItem*>( index.internalPointer() );
assert( currentItem );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment