| 143 | } |
| 144 | |
| 145 | void PageContainer::refreshContainer() |
| 146 | { |
| 147 | m_proxyModel->invalidate(); |
| 148 | if (!m_currentPage->shouldDisplay()) { |
| 149 | auto index = m_proxyModel->index(0, 0); |
| 150 | if (index.isValid()) { |
| 151 | m_pageList->setCurrentIndex(index); |
| 152 | } else { |
| 153 | // FIXME: unhandled corner case: what to do when there's no page to select? |
| 154 | } |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | void PageContainer::createUI() |
| 159 | { |
no test coverage detected