mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 10:18:05 +02:00
Qt: fixed compilation - regression from r65113 #80d2cfa567 by Jesus
git-svn-id: trunk@65116 -
This commit is contained in:
parent
649d8f7484
commit
f9d0cabc30
@ -198,17 +198,19 @@ var
|
||||
procedure AddAll;
|
||||
var
|
||||
i: Integer;
|
||||
oldPageSize: QPagedPaintDevicePageSize;
|
||||
begin
|
||||
oldPageSize := QtDefaultPrinter.PageSize;
|
||||
{$IFDEF LCLQt5}
|
||||
oldPageSize: QPagedPaintDevicePageSize;
|
||||
{$ENDIF}
|
||||
begin
|
||||
{$IFDEF LCLQt5}
|
||||
oldPageSize := QtDefaultPrinter.PageSize;
|
||||
for i:=QPagedPaintDeviceA4 to QPagedPaintDeviceCustom do
|
||||
Add(ArrPapers[i], i);
|
||||
QtDefaultPrinter.PageSize := oldPageSize;
|
||||
{$ELSE}
|
||||
for i:=QPrinterA4 to QPrinterCustom do
|
||||
Add(ArrPapers[i], i);
|
||||
{$ENDIF}
|
||||
QtDefaultPrinter.PageSize := oldPageSize;
|
||||
end;
|
||||
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user