mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 08:34:08 +00:00
fix:print preview resolution is too low
This commit is contained in:
parent
c3741ee696
commit
2e5ca5f70f
|
@ -3409,7 +3409,8 @@ void MainWindow::on_pageSetup_triggered()
|
||||||
|
|
||||||
void MainWindow::on_printPreview_triggered()
|
void MainWindow::on_printPreview_triggered()
|
||||||
{
|
{
|
||||||
QPrintPreviewDialog dialog( &getPrinter(), this );
|
QPrinter printer;
|
||||||
|
QPrintPreviewDialog dialog( &printer, this );
|
||||||
|
|
||||||
connect( &dialog, SIGNAL( paintRequested( QPrinter * ) ),
|
connect( &dialog, SIGNAL( paintRequested( QPrinter * ) ),
|
||||||
this, SLOT( printPreviewPaintRequested( QPrinter * ) ) );
|
this, SLOT( printPreviewPaintRequested( QPrinter * ) ) );
|
||||||
|
|
Loading…
Reference in a new issue