| 67 | } |
| 68 | |
| 69 | WorkbookView::~WorkbookView() { |
| 70 | // no need to react on currentChanged() in TabWidget when views are deleted |
| 71 | disconnect(m_tabWidget, nullptr, nullptr, nullptr); |
| 72 | |
| 73 | // delete all children views here, its own view will be deleted in ~AbstractPart() |
| 74 | for (const auto* part : m_workbook->children<AbstractPart>()) |
| 75 | part->deleteView(); |
| 76 | } |
| 77 | |
| 78 | int WorkbookView::currentIndex() const { |
| 79 | return m_tabWidget->currentIndex(); |
nothing calls this directly
no test coverage detected