Slot called when notes that were exported as PDF files are ready to be printed
| 3963 | |
| 3964 | // Slot called when notes that were exported as PDF files are ready to be printed |
| 3965 | void 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected