| 68 | } |
| 69 | |
| 70 | bool Note::printView() { |
| 71 | #ifndef SDK |
| 72 | QPrinter printer; |
| 73 | auto* dlg = new QPrintDialog(&printer, m_view); |
| 74 | dlg->setWindowTitle(i18nc("@title:window", "Print Note")); |
| 75 | bool ret; |
| 76 | if ((ret = (dlg->exec() == QDialog::Accepted))) |
| 77 | m_view->print(&printer); |
| 78 | |
| 79 | delete dlg; |
| 80 | return ret; |
| 81 | #else |
| 82 | return false; |
| 83 | #endif |
| 84 | } |
| 85 | |
| 86 | bool Note::printPreview() const { |
| 87 | #ifndef SDK |
nothing calls this directly
no test coverage detected