mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Viewer: Always start GoTo flow on correct page
This commit is contained in:
parent
df32cf01fb
commit
40d4d224be
@ -846,9 +846,9 @@ void Viewer::animateShowGoToFlow()
|
|||||||
showGoToFlowAnimation->setStartValue(QPoint((width() - goToFlow->width()) / 2, height() - 10));
|
showGoToFlowAnimation->setStartValue(QPoint((width() - goToFlow->width()) / 2, height() - 10));
|
||||||
showGoToFlowAnimation->setEndValue(QPoint((width() - goToFlow->width()) / 2, height() - goToFlow->height()));
|
showGoToFlowAnimation->setEndValue(QPoint((width() - goToFlow->width()) / 2, height() - goToFlow->height()));
|
||||||
showGoToFlowAnimation->start();
|
showGoToFlowAnimation->start();
|
||||||
goToFlow->centerSlide(render->getIndex());
|
|
||||||
goToFlow->setPageNumber(render->getIndex());
|
|
||||||
goToFlow->show();
|
goToFlow->show();
|
||||||
|
goToFlow->setPageNumber(render->getIndex());
|
||||||
|
goToFlow->centerSlide(render->getIndex());
|
||||||
goToFlow->setFocus(Qt::OtherFocusReason);
|
goToFlow->setFocus(Qt::OtherFocusReason);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user