############################################################################## ######################### Private slots #################################### ############################################################################## ! called when the current tab was changed. Propagates the selection of \c Spreadsheet or of a \c Matrix object to \c Workbook. */
| 87 | or of a \c Matrix object to \c Workbook. |
| 88 | */ |
| 89 | void 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 | |
| 100 | void WorkbookView::tabMoved(int /*from*/, int /*to*/) { |
| 101 | // TODO: |
no test coverage detected