| 131 | } |
| 132 | |
| 133 | void PageContainer::refreshContainer() |
| 134 | { |
| 135 | m_proxyModel->invalidate(); |
| 136 | if(!m_currentPage->shouldDisplay()) |
| 137 | { |
| 138 | auto index = m_proxyModel->index(0, 0); |
| 139 | if(index.isValid()) |
| 140 | { |
| 141 | m_pageList->setCurrentIndex(index); |
| 142 | } |
| 143 | else |
| 144 | { |
| 145 | // FIXME: unhandled corner case: what to do when there's no page to select? |
| 146 | } |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | void PageContainer::createUI() |
| 151 | { |
no test coverage detected