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

Method newNotebook

src/frontend/MainWin.cpp:2060–2067  ·  view source on GitHub ↗

adds a new Cantor Spreadsheet to the project. */

Source from the content-addressed store, hash-verified

2058 adds a new Cantor Spreadsheet to the project.
2059*/
2060void MainWin::newNotebook() {
2061 auto* action = static_cast<QAction*>(QObject::sender());
2062 m_lastUsedNotebookAction = action;
2063 if (m_tbNotebook)
2064 m_tbNotebook->setDefaultAction(m_lastUsedNotebookAction);
2065 auto* notebook = new Notebook(action->data().toString());
2066 this->addAspectToProject(notebook);
2067}
2068
2069/********************************************************************************/
2070#endif

Callers

nothing calls this directly

Calls 3

addAspectToProjectMethod · 0.95
toStringMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected