Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37724608
en ru br
ALT Linux repos
S:4.8.7-alt25
5.0: 4.5.2-alt1.M50.1
4.1: 4.4.3-alt1.M41.1
4.0: 4.3.4-alt5.M40.1
3.0: 4.0.1-alt1
+updates:4.0.1-alt2
+backports:4.2.3-alt7.1.M30

Group :: System/Libraries
RPM: qt4

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: 0191-listview-alternate-row-colors.diff
Download


qt-bugs@ issue : 178507
Trolltech task ID : 179170
applied: no
author: Matthew Woehlke <mw_triad@users.sourceforge.net>
This patch fixes incorrect setting of the palette color group in
QListView that resulted in alternate rows being drawn with the Active
AlternateBase color even for inactive widgets (while the rest of the
widget is drawn correctly). Please let me know if QListView is not
the only culprit. (QTreeView was fixed by TT already.)
Index: src/gui/itemviews/qlistview.cpp
===================================================================
--- src/gui/itemviews/qlistview.cpp.orig
+++ src/gui/itemviews/qlistview.cpp
@@ -992,7 +992,7 @@ void QListView::paintEvent(QPaintEvent *
                 option.state &= ~QStyle::State_Enabled;
                 cg = QPalette::Disabled;
             } else {
-                cg = QPalette::Normal;
+                cg = window()->isActiveWindow() ? QPalette::Active : QPalette::Inactive;
             }
             option.palette.setCurrentColorGroup(cg);
         }
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin