From 9bc391f9dace30c30a4110bb475b75051f58a1c5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 11 May 2013 22:10:37 +0530 Subject: [PATCH] Book list: Indicate the current cell with a dotted rectangle rather than the harder to see underline --- src/qtcurve/style/qtcurve.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/qtcurve/style/qtcurve.cpp b/src/qtcurve/style/qtcurve.cpp index 48f8376595..53e5a4247c 100644 --- a/src/qtcurve/style/qtcurve.cpp +++ b/src/qtcurve/style/qtcurve.cpp @@ -4784,11 +4784,7 @@ void Style::drawPrimitive(PrimitiveElement element, const QStyleOption *option, if(widget && ::qobject_cast(widget)) r2.adjust(0, 2, 0, 0); - // Added by Kovid so that the highlight does not cover the text - if(widget && ::qobject_cast(widget)) - r2.adjust(0, 0, 0, 2); - - if(FOCUS_STANDARD==opts.focus) + if(1 || FOCUS_STANDARD==opts.focus) // Changed by Kovid, as the underline focus does not work well in item views { // Taken from QWindowsStyle... painter->save();