fixed key events in goToFlow

TODO: add eventFilter to goToFlow edit...
This commit is contained in:
Luis Ángel San Martín
2013-12-10 23:37:29 +01:00
parent 883ac04917
commit 75e3d12f2e
10 changed files with 70 additions and 54 deletions

View File

@ -82,6 +82,7 @@ shouldOpenPrevious(false)
else
goToFlow = new GoToFlow(this,Configuration::getConfiguration().getFlowType());
goToFlow->setFocusPolicy(Qt::StrongFocus);
goToFlow->hide();
showGoToFlowAnimation = new QPropertyAnimation(goToFlow,"pos");
showGoToFlowAnimation->setDuration(150);
@ -255,7 +256,10 @@ void Viewer::updatePage()
emit backgroundChanges();
emit(pageAvailable(true));
setFocus(Qt::ShortcutFocusReason);
if(goToFlow->isHidden())
setFocus(Qt::ShortcutFocusReason);
else
goToFlow->setFocus(Qt::OtherFocusReason);
delete previousPage;
if(currentPage->isNull())