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

Method currentMatrix

src/backend/core/Workbook.cpp:113–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113Matrix* Workbook::currentMatrix() const {
114#ifndef SDK
115 if (!m_view)
116 return nullptr;
117
118 int index = reinterpret_cast<const WorkbookView*>(m_view)->currentIndex();
119 if (index != -1) {
120 auto* aspect = child<AbstractAspect>(index);
121 return dynamic_cast<Matrix*>(aspect);
122 }
123#endif
124 return nullptr;
125}
126
127/*!
128 this slot is called when a workbook child is selected in the project explorer.

Callers 1

importToMethod · 0.80

Calls 1

currentIndexMethod · 0.45

Tested by

no test coverage detected