Reviewing merge request #2291: Fixed QTBUG-4201- Artifacts being painted in the focus rect when using stylesheet - Mac OS X
Made sure the parent widgets are drawn into the focus rect's area before, so the artifacts are gone.
Test code see QTBUG-4201.
Commits that would be merged:
Comments
This looks a bit hacky to me.. assembling a widget list and drawing all ancestor and sibling widgets is certainly not what you would expect a call to draw CE_FocusFrame would do.
Are you sure this is a good idea?
Yes, you’re right, it’s not exactly a clean solution. Additionally, it has only to be done if QStyleSheets are used (or were used at some point). I've not found a way to figure that out.
Since the guys handling that bug report found it not that important and I guess non-Coca will be discontinued at some point(?) I don’t think it’s that bad.
Hum, as it is, this patch is way too hackish for me. And it will be reported as a performance regression if we integrate it.
Also note that the patch does not follow the coding style of Qt. The coding style is documented here: http://qt.gitorious.org/qt/pages/QtCodingStyle
fixed by MR#660


Add a new comment:
Login or create an account to post a comment