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

Method accept

src/frontend/datasources/ImportDialog.cpp:209–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209void ImportDialog::accept() {
210 if (!m_liveDataSource) {
211 bool rc = importTo(m_mainWin->statusBar());
212 if (rc) {
213 // the import was successful, set the project to Changed and close the dialog
214 m_mainWin->project()->setChanged(true);
215 QDialog::accept();
216 }
217 } else
218 QDialog::accept();
219}

Callers 15

contextMenuEventMethod · 0.80
mousePressEventMethod · 0.80
mouseReleaseEventMethod · 0.80
dragEnterEventMethod · 0.80
moveTabMethod · 0.80
mousePressEventMethod · 0.80
mouseReleaseEventMethod · 0.80
contextMenuEventMethod · 0.80
mouseDoubleClickEventMethod · 0.80
mousePressEventMethod · 0.80
mouseReleaseEventMethod · 0.80
contextMenuEventMethod · 0.80

Calls 2

setChangedMethod · 0.45
projectMethod · 0.45

Tested by

no test coverage detected