Details
-
Bug
-
Resolution: Out of scope
-
P4: Low
-
4.7.1
-
None
-
Windows 7, 64 bit
Description
Hi.
I am using custom delegate to paint items in QTreeView. I'm using QPalette::Text to draw normal text and QPaletter::HighlightedText to draw text on selected items (with standard selection background). Homever, on Windows7 HighlightedText returns invalid color (white instead of black on my particular instance).
Here is code for selecting text color:
http://gitorious.org/kadu/kadu/blobs/master/kadu-core/gui/widgets/buddies-list-view-item-painter.cpp#line424
I've found some code in Qt source that looks like a hack that I think I need to copy to my delegate code:
http://qt.gitorious.org/qt/qt/blobs/4.7/src/gui/styles/qwindowsvistastyle.cpp#line1502
I think that this hack should be replaced with proper fix for QPalette or even moved to QPalette code so each delegate could use it.