mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 04:24:09 +00:00
printreviewdialog change default printer
This commit is contained in:
parent
156eca87d5
commit
ab1b525f12
|
@ -3333,8 +3333,8 @@ void MainWindow::on_pageSetup_triggered()
|
|||
|
||||
void MainWindow::on_printPreview_triggered()
|
||||
{
|
||||
QPrinter printer;
|
||||
QPrintPreviewDialog dialog( &printer, this );
|
||||
// QPrinter printer;
|
||||
QPrintPreviewDialog dialog( &getPrinter(), this );
|
||||
|
||||
connect( &dialog, SIGNAL( paintRequested( QPrinter * ) ),
|
||||
this, SLOT( printPreviewPaintRequested( QPrinter * ) ) );
|
||||
|
|
Loading…
Reference in a new issue