mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Book list: Indicate the current cell with a dotted rectangle rather than the harder to see underline
This commit is contained in:
parent
1a6d66bb13
commit
9bc391f9da
@ -4784,11 +4784,7 @@ void Style::drawPrimitive(PrimitiveElement element, const QStyleOption *option,
|
||||
if(widget && ::qobject_cast<const QGroupBox *>(widget))
|
||||
r2.adjust(0, 2, 0, 0);
|
||||
|
||||
// Added by Kovid so that the highlight does not cover the text
|
||||
if(widget && ::qobject_cast<const QListView *>(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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user