mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 13:09:28 +02:00
Qt4: fixed build after removing of deprecated stuff
(cherry picked from commit 3cc1bc02fb
)
Co-authored-by: zeljan1 <zeljko@holobit.hr>
This commit is contained in:
parent
58e99549ce
commit
ca349787a4
@ -2319,7 +2319,7 @@ begin
|
||||
dispose(vClipRect);
|
||||
|
||||
if FMetrics <> nil then
|
||||
FreeThenNil(FMetrics);
|
||||
FreeAndNil(FMetrics);
|
||||
|
||||
DestroyObjects;
|
||||
|
||||
|
@ -20,7 +20,7 @@ interface
|
||||
{$i qtdefines.inc}
|
||||
|
||||
uses
|
||||
Classes, types, Controls, ExtCtrls, Graphics, Forms, LCLType, LCLProc, LazUTF8,
|
||||
Classes, types, SysUtils, Controls, ExtCtrls, Graphics, Forms, LCLType, LCLProc, LazUTF8,
|
||||
qtobjects, qt4, qtint;
|
||||
|
||||
type
|
||||
@ -224,7 +224,7 @@ begin
|
||||
FTrayIcon.OnPaint(FTrayIcon);
|
||||
EndPaintInternal(PaintData);
|
||||
finally
|
||||
FreeThenNil(FCanvas);
|
||||
FreeAndNil(FCanvas);
|
||||
end;
|
||||
Result := True;
|
||||
{$ELSE}
|
||||
|
Loading…
Reference in New Issue
Block a user