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

Method importProjectDialog

src/frontend/MainWin.cpp:2816–2837  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2814}
2815
2816void MainWin::importProjectDialog() {
2817 DEBUG(Q_FUNC_INFO);
2818
2819 ImportProjectDialog::ProjectType type;
2820 if (QObject::sender() == m_importOpjAction)
2821 type = ImportProjectDialog::ProjectType::Origin;
2822 else
2823 type = ImportProjectDialog::ProjectType::LabPlot;
2824
2825 auto* dlg = new ImportProjectDialog(this, type);
2826
2827 // set current folder
2828 dlg->setCurrentFolder(m_currentFolder);
2829
2830 if (dlg->exec() == QDialog::Accepted) {
2831 dlg->importTo(statusBar());
2832 m_project->setChanged(true);
2833 }
2834
2835 delete dlg;
2836 DEBUG(Q_FUNC_INFO << ", DONE");
2837}
2838
2839/*!
2840 * \brief opens a dialog to import datasets

Callers

nothing calls this directly

Calls 4

setCurrentFolderMethod · 0.80
execMethod · 0.80
importToMethod · 0.45
setChangedMethod · 0.45

Tested by

no test coverage detected