From 1a6b75f36f182dc5d16e6c329cc293528125a3fc Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Wed, 28 May 2014 23:13:14 +1000 Subject: [PATCH] Put print margins back --- sleepyhead/mainwindow.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sleepyhead/mainwindow.cpp b/sleepyhead/mainwindow.cpp index 06bf34c1..f839e577 100644 --- a/sleepyhead/mainwindow.cpp +++ b/sleepyhead/mainwindow.cpp @@ -1378,8 +1378,7 @@ void MainWindow::on_actionPrint_Report_triggered() datestr = QDateTime::currentDateTime().toString(Qt::ISODate); } else { name = "Unknown"; } - QString filename = PREF.Get("{home}/" + name + "_" + PROFILE.user->userName() + "_" + datestr + - ".pdf"); + QString filename = PREF.Get("{home}/" + name + "_" + PROFILE.user->userName() + "_" + datestr + ".pdf"); printer.setOutputFileName(filename); #endif @@ -1387,7 +1386,7 @@ void MainWindow::on_actionPrint_Report_triggered() printer.setOrientation(QPrinter::Portrait); printer.setFullPage(false); // This has nothing to do with scaling printer.setNumCopies(1); - printer.setPageMargins(0, 0, 0, 0, QPrinter::Millimeter); + printer.setPageMargins(5, 5, 5, 5, QPrinter::Millimeter); QPrintDialog pdlg(&printer, this); if (pdlg.exec() == QPrintDialog::Accepted) {