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

Method exportView

src/backend/worksheet/Worksheet.cpp:205–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205bool Worksheet::exportView() const {
206#ifndef SDK
207 auto* dlg = new ExportWorksheetDialog(m_view);
208 dlg->setProjectFileName(const_cast<Worksheet*>(this)->project()->fileName());
209 dlg->setFileName(name());
210 bool ret;
211 if ((ret = (dlg->exec() == QDialog::Accepted))) {
212 QString path = dlg->path();
213 const auto format = dlg->exportFormat();
214 const auto area = dlg->exportArea();
215 const bool background = dlg->exportBackground();
216 const int resolution = dlg->exportResolution();
217
218 WAIT_CURSOR;
219 m_view->exportToFile(path, format, area, background, resolution);
220 RESET_CURSOR;
221 }
222 delete dlg;
223 return ret;
224#else
225 return true;
226#endif
227}
228
229bool Worksheet::exportView(QPixmap& pixmap) const {
230 if (!m_view)

Callers

nothing calls this directly

Calls 12

execMethod · 0.80
exportFormatMethod · 0.80
exportAreaMethod · 0.80
exportBackgroundMethod · 0.80
exportResolutionMethod · 0.80
exportToPixmapMethod · 0.80
setProjectFileNameMethod · 0.45
fileNameMethod · 0.45
projectMethod · 0.45
setFileNameMethod · 0.45
pathMethod · 0.45
exportToFileMethod · 0.45

Tested by

no test coverage detected