Changed the comics view transition for a simple plain view. In a future the views swaping should be fixed using double buffering.

This commit is contained in:
Luis Ángel San Martín
2016-04-09 14:57:33 +02:00
parent 79b7654924
commit 48d9c9fdd0
9 changed files with 4 additions and 75 deletions

View File

@ -58,7 +58,6 @@ YACReaderComicsViewsManager::YACReaderComicsViewsManager(QSettings *settings, Li
comicsViewStack->setCurrentWidget(comicsView);
//connections
connect(comicsViewTransition,SIGNAL(transitionFinished()),this,SLOT(showComicsView()));
connect(emptyFolderWidget, SIGNAL(copyComicsToCurrentFolder(QList<QPair<QString, QString> >)), libraryWindow, SLOT(copyAndImportComicsToCurrentFolder(QList<QPair<QString, QString> >)));
connect(emptyFolderWidget, SIGNAL(moveComicsToCurrentFolder(QList<QPair<QString, QString> >)), libraryWindow, SLOT(moveAndImportComicsToCurrentFolder(QList<QPair<QString, QString> >)));
@ -104,7 +103,7 @@ void YACReaderComicsViewsManager::toggleComicsView()
{
if(comicsViewStack->currentWidget()==comicsView) {
QTimer::singleShot(0,this,SLOT(showComicsViewTransition()));
QTimer::singleShot(32,this,SLOT(toggleComicsView_delayed()));
QTimer::singleShot(100,this,SLOT(toggleComicsView_delayed()));
} else
toggleComicsView_delayed();
}
@ -167,7 +166,6 @@ void YACReaderComicsViewsManager::switchToComicsView(ComicsView * from, ComicsVi
void YACReaderComicsViewsManager::showComicsViewTransition()
{
comicsViewStack->setCurrentWidget(comicsViewTransition);
comicsViewTransition->startMovie();
}
void YACReaderComicsViewsManager::toggleComicsView_delayed()
@ -219,4 +217,6 @@ void YACReaderComicsViewsManager::toggleComicsView_delayed()
}
libraryWindow->settings->setValue(COMICS_VIEW_STATUS, comicsViewStatus);
showComicsView();
}