Qt: do not paint background of widgets whos FHasPaint=False and LCLObject.Color = clDefault.

git-svn-id: trunk@25576 -
This commit is contained in:
zeljko 2010-05-22 12:07:00 +00:00
parent ffca852a3e
commit c266e136cf

View File

@ -2006,7 +2006,7 @@ begin
QEventContentsRectChange: LCLObject.DoAdjustClientRectChange(False);
QEventPaint:
begin
if canPaintBackground then
if canPaintBackground and (LCLObject.Color <> clDefault) then
SlotPaintBg(Sender, Event);
if FHasPaint then
SlotPaint(Sender, Event);