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

Method currentSpreadsheet

src/backend/core/Workbook.cpp:99–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99Spreadsheet* Workbook::currentSpreadsheet() const {
100#ifndef SDK
101 if (!m_view)
102 return nullptr;
103
104 int index = m_view->currentIndex();
105 if (index != -1) {
106 auto* aspect = child<AbstractAspect>(index);
107 return dynamic_cast<Spreadsheet*>(aspect);
108 }
109#endif
110 return nullptr;
111}
112
113Matrix* Workbook::currentMatrix() const {
114#ifndef SDK

Callers 1

importToMethod · 0.45

Calls 1

currentIndexMethod · 0.45

Tested by

no test coverage detected