| 1167 | } |
| 1168 | |
| 1169 | void Viewer::animateShowGoToFlow() |
| 1170 | { |
| 1171 | if (goToFlow->isHidden() && showGoToFlowAnimation->state() != QPropertyAnimation::Running) { |
| 1172 | disconnect(showGoToFlowAnimation, &QAbstractAnimation::finished, goToFlow, &QWidget::hide); |
| 1173 | connect(showGoToFlowAnimation, &QAbstractAnimation::finished, this, &Viewer::moveCursoToGoToFlow); |
| 1174 | showGoToFlowAnimation->setStartValue(QPoint((width() - goToFlow->width()) / 2, height() - 10)); |
| 1175 | showGoToFlowAnimation->setEndValue(QPoint((width() - goToFlow->width()) / 2, height() - goToFlow->height())); |
| 1176 | showGoToFlowAnimation->start(); |
| 1177 | goToFlow->show(); |
| 1178 | goToFlow->setPageNumber(render->getIndex()); |
| 1179 | goToFlow->centerSlide(render->getIndex()); |
| 1180 | goToFlow->setFocus(Qt::OtherFocusReason); |
| 1181 | } |
| 1182 | } |
| 1183 | |
| 1184 | void Viewer::animateHideGoToFlow() |
| 1185 | { |
no test coverage detected