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

Method tabChanged

src/frontend/datapicker/DatapickerView.cpp:107–114  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

105 or of a \c DatapickerImage object to \c Datapicker.
106*/
107void DatapickerView::tabChanged(int index) {
108 if (m_initializing || index == -1)
109 return;
110
111 m_datapicker->setChildSelectedInView(lastSelectedIndex, false);
112 m_datapicker->setChildSelectedInView(index, true);
113 lastSelectedIndex = index;
114}
115
116void DatapickerView::tabMoved(int /*from*/, int /*to*/) {
117 // TODO:

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected