mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-05 23:58:06 +02:00
Qt5, Qt6: stop warnings about uninitialized paint engine. issue #41304
This commit is contained in:
parent
bfd5b97aab
commit
619d76cdb7
@ -436,6 +436,9 @@ begin
|
||||
if not WSCheckHandleAllocated(AWincontrol, 'PaintTo') or (ADC = 0) then
|
||||
Exit;
|
||||
|
||||
if not AWinControl.Visible or not TQtWidget(AWinControl.Handle).getVisible then
|
||||
exit;
|
||||
|
||||
Widget := TQtWidget(AWinControl.Handle);
|
||||
ARect := Widget.getFrameGeometry;
|
||||
|
||||
|
@ -434,6 +434,9 @@ begin
|
||||
if not WSCheckHandleAllocated(AWincontrol, 'PaintTo') or (ADC = 0) then
|
||||
Exit;
|
||||
|
||||
if not AWinControl.Visible or not TQtWidget(AWinControl.Handle).getVisible then
|
||||
exit;
|
||||
|
||||
Widget := TQtWidget(AWinControl.Handle);
|
||||
ARect := Widget.getFrameGeometry;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user