MCPcopy Create free account
hub / github.com/YACReader/yacreader / animateShowGoToFlow

Method animateShowGoToFlow

YACReader/viewer.cpp:1169–1182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1167}
1168
1169void 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
1184void Viewer::animateHideGoToFlow()
1185{

Callers 1

mouseMoveEventMethod · 0.80

Calls 7

QPointClass · 0.85
stateMethod · 0.80
startMethod · 0.80
setPageNumberMethod · 0.80
showMethod · 0.45
getIndexMethod · 0.45
centerSlideMethod · 0.45

Tested by

no test coverage detected