From 69042fee5b2ac78ca29f2c4a577cbe7d2bd38ba4 Mon Sep 17 00:00:00 2001 From: "craig.p.drummond" Date: Wed, 1 Oct 2014 17:46:54 +0000 Subject: [PATCH] Fix current track highlight in grouped view under windows for header item. --- ChangeLog | 1 + widgets/groupedview.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 738849276..43e5f693e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -67,6 +67,7 @@ 46. Connect MPRIS stopAfterCurrent signal to correct action. 47. Add prev/play/pause/etc actions to Unity launcher, and to windows taskbar entry. +48. Fix current track highlight in grouped view under windows for header item. 1.4.2 ----- diff --git a/widgets/groupedview.cpp b/widgets/groupedview.cpp index 3664cf640..24e11fdf0 100644 --- a/widgets/groupedview.cpp +++ b/widgets/groupedview.cpp @@ -338,7 +338,7 @@ public: if (state && GroupedView::State_StopAfterTrack!=state) { QRectF border(option.rect.x()+1.5, option.rect.y()+1.5, option.rect.width()-3, option.rect.height()-3); if (!title.isEmpty()) { - border.adjust(0, textHeight+constBorder, 0, 0); + border.adjust(0, (border.height()/2)+1, 0, 0); } QLinearGradient g(border.topLeft(), border.bottomLeft()); #ifdef Q_OS_MAC