| 73 | } |
| 74 | |
| 75 | void PageView::doLayout() |
| 76 | { |
| 77 | if (!_innerContainerDoLayoutDirty) |
| 78 | { |
| 79 | return; |
| 80 | } |
| 81 | |
| 82 | ListView::doLayout(); |
| 83 | if (_indicator != nullptr) |
| 84 | { |
| 85 | _currentPageIndex = getIndex(getCenterItemInCurrentView()); |
| 86 | _indicator->indicate(_currentPageIndex); |
| 87 | } |
| 88 | _innerContainerDoLayoutDirty = false; |
| 89 | } |
| 90 | |
| 91 | void PageView::setDirection(PageView::Direction direction) |
| 92 | { |