mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 04:54:29 -04:00
fixed load volumes model in select volume
added full fordwar and backward navigation in volume scraping
This commit is contained in:
@ -73,6 +73,8 @@ void ComicVineDialog::doLayout()
|
||||
|
||||
setLayout(mainLayout);
|
||||
setFixedSize(872,529);
|
||||
|
||||
setWindowTitle("Comic Vine Scraper (beta)");
|
||||
}
|
||||
|
||||
void ComicVineDialog::doStackedWidgets()
|
||||
@ -145,6 +147,9 @@ void ComicVineDialog::goBack()
|
||||
else
|
||||
showSearchSingleComic();
|
||||
break;
|
||||
case SortingComics:
|
||||
showSelectVolume();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@ -265,6 +270,12 @@ void ComicVineDialog::showSearchVolume()
|
||||
}
|
||||
|
||||
void ComicVineDialog::showSelectVolume(const QString & json)
|
||||
{
|
||||
showSelectVolume();
|
||||
selectVolumeWidget->load(json);
|
||||
}
|
||||
|
||||
void ComicVineDialog::showSelectVolume()
|
||||
{
|
||||
status = SelectingSeries;
|
||||
|
||||
@ -274,8 +285,6 @@ void ComicVineDialog::showSelectVolume(const QString & json)
|
||||
nextButton->setVisible(true);
|
||||
searchButton->setHidden(true);
|
||||
closeButton->setVisible(true);
|
||||
|
||||
selectVolumeWidget->load(json);
|
||||
}
|
||||
|
||||
void ComicVineDialog::showSelectComic(const QString &json)
|
||||
@ -286,8 +295,16 @@ void ComicVineDialog::showSelectComic(const QString &json)
|
||||
|
||||
void ComicVineDialog::showSortVolumeComics(const QString &json)
|
||||
{
|
||||
status = SortingComics;
|
||||
|
||||
content->setCurrentWidget(sortVolumeComicsWidget);
|
||||
|
||||
sortVolumeComicsWidget->setData(comics, json);
|
||||
|
||||
backButton->setVisible(true);
|
||||
nextButton->setVisible(true);
|
||||
searchButton->setHidden(true);
|
||||
closeButton->setVisible(true);
|
||||
}
|
||||
|
||||
void ComicVineDialog::showLoading()
|
||||
|
@ -47,6 +47,7 @@ protected slots:
|
||||
void launchSearchVolume();
|
||||
void launchSearchComic();
|
||||
void showSelectVolume(const QString & json);
|
||||
void showSelectVolume();
|
||||
void showSelectComic(const QString & json);
|
||||
void showSortVolumeComics(const QString & json);
|
||||
private:
|
||||
@ -65,7 +66,8 @@ private:
|
||||
SelectingComic,
|
||||
SelectingSeries,
|
||||
SearchingSingleComic,
|
||||
SearchingVolume
|
||||
SearchingVolume,
|
||||
SortingComics
|
||||
};
|
||||
|
||||
ScraperMode mode;
|
||||
|
@ -103,8 +103,8 @@ void SelectVolume::load(const QString & json)
|
||||
|
||||
if(model != 0)
|
||||
delete model;
|
||||
else
|
||||
model = tempM;
|
||||
|
||||
model = tempM;
|
||||
|
||||
if(model->rowCount()>0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user