Qt: fix for wrong widget passed to painter constructor in SlotPaintBg().related issue #26207

git-svn-id: trunk@45149 -
This commit is contained in:
zeljko 2014-05-22 13:34:22 +00:00
parent 58aea56dec
commit ff968029ac

View File

@ -3958,7 +3958,7 @@ begin
Color := Palette.DefaultColor
else
ColorRefToTQColor(ColorToRGB(LCLObject.Color), Color);
Painter := QPainter_create(QWidget_to_QPaintDevice(Widget));
Painter := QPainter_create(QWidget_to_QPaintDevice(QWidgetH(Sender)));
Brush := QBrush_create(@Color, QtSolidPattern);
try
QPaintEvent_rect(QPaintEventH(Event), @R);