Book list: Indicate the current cell with a dotted rectangle rather than the harder to see underline

This commit is contained in:
Kovid Goyal 2013-05-11 22:10:37 +05:30
parent 1a6d66bb13
commit 9bc391f9da

View File

@ -4784,11 +4784,7 @@ void Style::drawPrimitive(PrimitiveElement element, const QStyleOption *option,
if(widget && ::qobject_cast<const QGroupBox *>(widget)) if(widget && ::qobject_cast<const QGroupBox *>(widget))
r2.adjust(0, 2, 0, 0); r2.adjust(0, 2, 0, 0);
// Added by Kovid so that the highlight does not cover the text if(1 || FOCUS_STANDARD==opts.focus) // Changed by Kovid, as the underline focus does not work well in item views
if(widget && ::qobject_cast<const QListView *>(widget))
r2.adjust(0, 0, 0, 2);
if(FOCUS_STANDARD==opts.focus)
{ {
// Taken from QWindowsStyle... // Taken from QWindowsStyle...
painter->save(); painter->save();