Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
libqt4-devel-doc
0191-listview-alternate-row-colors.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0191-listview-alternate-row-colors.diff of Package libqt4-devel-doc
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); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor