-----------------------------------------------------------------------------
| 169 | } |
| 170 | //----------------------------------------------------------------------------- |
| 171 | void Comic::setIndex(unsigned int index) |
| 172 | { |
| 173 | int previousIndex = _index; |
| 174 | if (static_cast<int>(index) < _pages.size() - 1) { |
| 175 | _index = index; |
| 176 | } else { |
| 177 | _index = _pages.size() - 1; |
| 178 | } |
| 179 | |
| 180 | if (previousIndex != _index) { |
| 181 | emit pageChanged(_index); |
| 182 | } |
| 183 | } |
| 184 | //----------------------------------------------------------------------------- |
| 185 | /*QPixmap * Comic::currentPage() |
| 186 | { |
no outgoing calls
no test coverage detected