goBack added to Comic Vine dialog

This commit is contained in:
Luis Ángel San Martín
2013-10-23 14:56:23 +02:00
parent eaaf370930
commit 6af217f777
4 changed files with 19 additions and 2 deletions

View File

@ -90,6 +90,7 @@ void ComicVineDialog::doConnections()
{
connect(closeButton,SIGNAL(clicked()),this,SLOT(close()));
connect(nextButton,SIGNAL(clicked()),this,SLOT(goNext()));
connect(backButton,SIGNAL(clicked()),this,SLOT(goBack()));
connect(searchButton,SIGNAL(clicked()),this,SLOT(search()));
}
@ -135,6 +136,20 @@ void ComicVineDialog::goNext()
}
}
void ComicVineDialog::goBack()
{
switch (status) {
case SelectingSeries:
if(mode == Volume)
showSearchVolume();
else
showSearchSingleComic();
break;
default:
break;
}
}
void ComicVineDialog::setComics(const QList<ComicDB> & comics)
{
this->comics = comics;
@ -173,6 +188,7 @@ void ComicVineDialog::doLoading()
l->addStretch();
l->addWidget(bw,0,Qt::AlignHCenter);
l->addStretch();
l->setContentsMargins(0,0,0,0);
w->setLayout(l);