mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-14 13:59:34 +02:00
Qt: update PrinterIndex from PrintDlg.issue #21201
git-svn-id: trunk@35082 -
This commit is contained in:
parent
04e9be00e0
commit
44970aa342
@ -44,6 +44,7 @@ var
|
||||
QtPrnDlg: QPrintDialogH;
|
||||
PrnOptions: QAbstractPrintDialogPrintDialogOptions;
|
||||
Str: WideString;
|
||||
S: String;
|
||||
begin
|
||||
Result := False;
|
||||
|
||||
@ -102,6 +103,9 @@ begin
|
||||
|
||||
if Result then
|
||||
begin
|
||||
S := QtDefaultPrinter.PrinterName;
|
||||
if Printer.Printers.IndexOf(S) <> -1 then
|
||||
Printer.SetPrinter(S);
|
||||
Collate := QtDefaultPrinter.Collate;
|
||||
MinPage := QAbstractPrintDialog_minPage(QtPrnDlg);
|
||||
MaxPage := QAbstractPrintDialog_maxPage(QtPrnDlg);
|
||||
|
Loading…
Reference in New Issue
Block a user