Increased print resolution to get thinner table borders

This commit is contained in:
Michael Mandl 2018-12-15 17:10:21 +01:00
parent c8bd1bbdb8
commit e64ef375fb

View file

@ -151,6 +151,7 @@ void MainWindow::closeFile()
void MainWindow::print() const void MainWindow::print() const
{ {
QPrinter printer; QPrinter printer;
printer.setResolution(1200);
QPrintDialog dialog(&printer); QPrintDialog dialog(&printer);
if (dialog.exec() != QDialog::Accepted) if (dialog.exec() != QDialog::Accepted)
@ -209,6 +210,7 @@ void MainWindow::saveFile(const QString &filename)
void MainWindow::savePdf(const QString &filename) void MainWindow::savePdf(const QString &filename)
{ {
QPrinter printer; QPrinter printer;
printer.setResolution(1200);
printer.setOutputFormat(QPrinter::PdfFormat); printer.setOutputFormat(QPrinter::PdfFormat);
printer.setPaperSize(QPrinter::A4); printer.setPaperSize(QPrinter::A4);
printer.setOutputFileName(filename); printer.setOutputFileName(filename);