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

Method currentChanged

src/frontend/worksheet/WorksheetPreviewWidget.cpp:132–139  ·  view source on GitHub ↗

! * called when the current item in the list view was changed, * triggers the navigation to the corresponding worksheet. */

Source from the content-addressed store, hash-verified

130 * triggers the navigation to the corresponding worksheet.
131 */
132void WorksheetPreviewWidget::currentChanged(int index) {
133 if (m_suppressNavigate)
134 return;
135
136 const auto& worksheets = m_project->children<Worksheet>(AbstractAspect::ChildIndexFlag::Recursive);
137 const auto* worksheet = worksheets.at(index);
138 m_project->requestNavigateTo(worksheet->path());
139}
140
141void WorksheetPreviewWidget::aspectAdded(const AbstractAspect* aspect) {
142 if (m_project->isLoading())

Callers

nothing calls this directly

Calls 1

pathMethod · 0.45

Tested by

no test coverage detected