mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-03 08:59:25 +01:00
Printers, implemented page setup dialog for qt, from zeljko
git-svn-id: trunk@16170 -
This commit is contained in:
parent
504381f826
commit
ec5eed13d3
@ -15,14 +15,19 @@ var
|
||||
{ TPageSetupDialog }
|
||||
|
||||
function TPageSetupDialog.Execute: Boolean;
|
||||
var
|
||||
PgDlg: QPageSetupDialogH;
|
||||
begin
|
||||
Result := False;
|
||||
// TODO: set and get paper margins, title - wait for bindings update (Den)
|
||||
if not Assigned(Printer) then Exit;
|
||||
if Printer.Printers.Count <= 0 then Exit;
|
||||
raise Printers.EPrinter.Create('Qt: TPageSetupDialog() under construction !');
|
||||
PgDlg := QPageSetupDialog_create(QtDefaultPrinter.Handle, nil);
|
||||
try
|
||||
Result := QPageSetupDialog_exec(PgDlg) = Ord(QDialogAccepted);
|
||||
finally
|
||||
QPageSetupDialog_destroy(PgDlg);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
{ TPrinterSetupDialog }
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user