MCPcopy Create free account
hub / github.com/KDE/labplot / printView

Method printView

src/backend/datapicker/DatapickerImage.cpp:186–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186bool 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
198bool DatapickerImage::printPreview() const {
199 auto* dlg = new QPrintPreviewDialog(m_view);

Callers

nothing calls this directly

Calls 3

setWindowTitleMethod · 0.80
execMethod · 0.80
printMethod · 0.45

Tested by

no test coverage detected