mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 03:29:28 +02:00
Qt: fixed bug inside SelectClipRgn(), reproducable on Mac & Linux only (now FastCube works fine ;) ).
git-svn-id: trunk@17653 -
This commit is contained in:
parent
21c26f68e4
commit
e23cf3a342
@ -4069,12 +4069,17 @@ begin
|
|||||||
QPainter_setClipRegion(Painter, TQtRegion(Rgn).Widget)
|
QPainter_setClipRegion(Painter, TQtRegion(Rgn).Widget)
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
|
{$IFDEF UNIX}
|
||||||
|
{looks like a qt bug, this helps to mac & linux}
|
||||||
|
QPainter_setClipping(Painter, False);
|
||||||
|
{$ELSE}
|
||||||
EmptyRegion := QRegion_create;
|
EmptyRegion := QRegion_create;
|
||||||
try
|
try
|
||||||
QPainter_setClipRegion(Painter, EmptyRegion, QtNoClip);
|
QPainter_setClipRegion(Painter, EmptyRegion, QtNoClip);
|
||||||
finally
|
finally
|
||||||
QRegion_destroy(EmptyRegion);
|
QRegion_destroy(EmptyRegion);
|
||||||
end;
|
end;
|
||||||
|
{$ENDIF}
|
||||||
end;
|
end;
|
||||||
if QPainter_hasClipping(Painter) then
|
if QPainter_hasClipping(Painter) then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user