New feature: open next/previous comic automatically after reaching end/cover for the current comic

issue #4 https://bitbucket.org/luisangelsm/yacreader/issue/2/auto-advance-to-next-comic
This commit is contained in:
Luis Ángel San Martín
2013-10-15 09:29:58 +02:00
parent 4e3b46a6ba
commit e6c1b7515e
4 changed files with 38 additions and 11 deletions

View File

@ -121,6 +121,10 @@ void MainWindowViewer::setupUI()
viewer = new Viewer(this);
connect(viewer,SIGNAL(reset()),this,SLOT(disableActions()));
//detected end of comic
connect(viewer,SIGNAL(openNextComic()),this,SLOT(openNextComic()));
//detected start of comic
connect(viewer,SIGNAL(openPreviousComic()),this,SLOT(openPreviousComic()));
setCentralWidget(viewer);
int heightDesktopResolution = QApplication::desktop()->screenGeometry().height();