Increased print resolution to get thinner table borders
This commit is contained in:
parent
c8bd1bbdb8
commit
e64ef375fb
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue