| 243 | } |
| 244 | |
| 245 | void PageContainer::currentChanged(const QModelIndex& current) |
| 246 | { |
| 247 | int selected_index = current.isValid() ? m_proxyModel->mapToSource(current).row() : -1; |
| 248 | |
| 249 | auto* selected = m_model->pages().at(selected_index); |
| 250 | auto* previous = m_currentPage; |
| 251 | |
| 252 | emit selectedPageChanged(previous, selected); |
| 253 | |
| 254 | showPage(selected_index); |
| 255 | } |
| 256 | |
| 257 | bool PageContainer::prepareToClose() |
| 258 | { |
nothing calls this directly
no test coverage detected