mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 09:21:35 +02:00
Qt: fix for wrong widget passed to painter constructor in SlotPaintBg().related issue #26207
git-svn-id: trunk@45149 -
This commit is contained in:
parent
58aea56dec
commit
ff968029ac
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user