| 109 | } |
| 110 | |
| 111 | void PageContainer::refreshContainer() |
| 112 | { |
| 113 | m_proxyModel->invalidate(); |
| 114 | if(!m_currentPage->shouldDisplay()) |
| 115 | { |
| 116 | auto index = m_proxyModel->index(0, 0); |
| 117 | if(index.isValid()) |
| 118 | { |
| 119 | m_pageList->setCurrentIndex(index); |
| 120 | } |
| 121 | else |
| 122 | { |
| 123 | // FIXME: unhandled corner case: what to do when there's no page to select? |
| 124 | } |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | void PageContainer::createUI() |
| 129 | { |
no test coverage detected