| 184 | } |
| 185 | |
| 186 | bool DatapickerImage::printView() { |
| 187 | QPrinter printer; |
| 188 | auto* dlg = new QPrintDialog(&printer, m_view); |
| 189 | bool ret; |
| 190 | dlg->setWindowTitle(i18nc("@title:window", "Print Datapicker Image")); |
| 191 | if ((ret = (dlg->exec() == QDialog::Accepted))) |
| 192 | m_view->print(&printer); |
| 193 | |
| 194 | delete dlg; |
| 195 | return ret; |
| 196 | } |
| 197 | |
| 198 | bool DatapickerImage::printPreview() const { |
| 199 | auto* dlg = new QPrintPreviewDialog(m_view); |
nothing calls this directly
no test coverage detected