From: Peter Penz Date: Sat, 14 Jan 2012 10:29:24 +0000 (+0100) Subject: Fix current-item indicator in combination with the cleanlooks style X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/b09986ef27be69e22c53afb047145b868a32c8bf?ds=inline Fix current-item indicator in combination with the cleanlooks style Thanks to Christoph Feck for the hint. BUG: 290536 FIXED-IN: 4.8.0 --- diff --git a/src/kitemviews/kitemlistwidget.cpp b/src/kitemviews/kitemlistwidget.cpp index 61e06078b..cd2bf4d40 100644 --- a/src/kitemviews/kitemlistwidget.cpp +++ b/src/kitemviews/kitemlistwidget.cpp @@ -132,7 +132,7 @@ void KItemListWidget::paint(QPainter* painter, const QStyleOptionGraphicsItem* o focusRectOption.rect = textBounds.adjusted(1, 1, -1, -1); } - focusRectOption.state = QStyle::State_Enabled | QStyle::State_Item; + focusRectOption.state = QStyle::State_Enabled | QStyle::State_Item | QStyle::State_KeyboardFocusChange; if (m_selected) { focusRectOption.state |= QStyle::State_Selected; }