MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / exportAsPdfReady

Method exportAsPdfReady

nixnote.cpp:3965–3978  ·  view source on GitHub ↗

Slot called when notes that were exported as PDF files are ready to be printed

Source from the content-addressed store, hash-verified

3963
3964// Slot called when notes that were exported as PDF files are ready to be printed
3965void NixNote::exportAsPdfReady(bool) {
3966 QString file = QFileDialog::getSaveFileName(0,tr("PDF Export"), "","*.pdf");
3967
3968 if (file == "")
3969 return;
3970
3971 QPrinter printer;
3972 printer.setOutputFormat(QPrinter::PdfFormat);
3973 printer.setResolution(QPrinter::HighResolution);
3974 printer.setPaperSize(QPrinter::A4);
3975 printer.setOutputFileName(file);
3976 pdfExportWindow->print(&printer);
3977 QMessageBox::information(0, tr("NixNote"), tr("Export complete"));
3978}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected