From e73c55bc4741c72c329b2b9c4071a4d1a1d55b24 Mon Sep 17 00:00:00 2001 From: nhnielsen Date: Wed, 3 Oct 2007 13:29:29 +0000 Subject: [PATCH] Add a simple selection marker just to keep me from going insane because I cannot se what is selected and what is not git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/extragear/multimedia/amarok@720683 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/playlist/PlaylistGraphicsItem.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/playlist/PlaylistGraphicsItem.cpp b/src/playlist/PlaylistGraphicsItem.cpp index aa7c2df43..22ccabbfc 100644 --- a/src/playlist/PlaylistGraphicsItem.cpp +++ b/src/playlist/PlaylistGraphicsItem.cpp @@ -252,6 +252,14 @@ Playlist::GraphicsItem::paint( QPainter* painter, const QStyleOptionGraphicsItem m_items->topLeftText->hide(); } + //set selection marker if needed + + if( option->state & QStyle::State_Selected ) + { + painter->fillRect( trackRect, QBrush( QColor( 0, 0, 255, 128 ) ) ); + + } + //set overlay if item is active: if( index.data( ActiveTrackRole ).toBool() ) -- 2.11.4.GIT