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

Method tabChanged

src/frontend/workbook/WorkbookView.cpp:89–98  ·  view source on GitHub ↗

############################################################################## ######################### Private slots #################################### ############################################################################## ! called when the current tab was changed. Propagates the selection of \c Spreadsheet or of a \c Matrix object to \c Workbook. */

Source from the content-addressed store, hash-verified

87 or of a \c Matrix object to \c Workbook.
88*/
89void WorkbookView::tabChanged(int index) {
90 CONDITIONAL_RETURN_NO_LOCK;
91
92 if (index == -1)
93 return;
94
95 m_workbook->setChildSelectedInView(lastSelectedIndex, false);
96 m_workbook->setChildSelectedInView(index, true);
97 lastSelectedIndex = index;
98}
99
100void WorkbookView::tabMoved(int /*from*/, int /*to*/) {
101 // TODO:

Callers 1

handleAspectAddedMethod · 0.95

Calls 1

Tested by

no test coverage detected