mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 21:10:42 +02:00
Qt: changed deprecated QRegion unite,eor,intersect with united,xored and intersected procs.
git-svn-id: trunk@31617 -
This commit is contained in:
parent
4c0026a1c7
commit
9d7af92881
@ -254,20 +254,20 @@ begin
|
||||
|
||||
case fnCombineMode of
|
||||
RGN_AND:
|
||||
QRegion_Intersect(RSrc1, RDest, RSrc2);
|
||||
QRegion_intersected(RSrc1, RDest, RSrc2);
|
||||
RGN_COPY:
|
||||
begin
|
||||
// union of Src1 with a null region
|
||||
RSrc2 := QRegion_Create;
|
||||
QRegion_unite(RSrc1, RDest, RSrc2);
|
||||
QRegion_Destroy(RSrc2);
|
||||
RSrc2 := QRegion_create;
|
||||
QRegion_united(RSrc1, RDest, RSrc2);
|
||||
QRegion_destroy(RSrc2);
|
||||
end;
|
||||
RGN_DIFF:
|
||||
QRegion_subtracted(RSrc1, RDest, RSrc2);
|
||||
RGN_OR:
|
||||
QRegion_unite(RSrc1, RDest, RSrc2);
|
||||
QRegion_united(RSrc1, RDest, RSrc2);
|
||||
RGN_XOR:
|
||||
QRegion_eor(RSrc1, RDest, RSrc2);
|
||||
QRegion_xored(RSrc1, RDest, RSrc2);
|
||||
end;
|
||||
|
||||
if QRegion_isEmpty(RDest) then
|
||||
|
Loading…
Reference in New Issue
Block a user