mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
comic vine loading view working
This commit is contained in:
parent
93bc691998
commit
e8a97230f5
@ -56,10 +56,11 @@ void ComicVineDialog::doLayout()
|
|||||||
|
|
||||||
void ComicVineDialog::doStackedWidgets()
|
void ComicVineDialog::doStackedWidgets()
|
||||||
{
|
{
|
||||||
|
doLoading();
|
||||||
content->addWidget(seriesQuestion = new SeriesQuestion);
|
content->addWidget(seriesQuestion = new SeriesQuestion);
|
||||||
content->addWidget(searchSingleComic = new SearchSingleComic);
|
content->addWidget(searchSingleComic = new SearchSingleComic);
|
||||||
content->addWidget(searchVolume = new SearchVolume);
|
content->addWidget(searchVolume = new SearchVolume);
|
||||||
doLoading();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ComicVineDialog::doConnections()
|
void ComicVineDialog::doConnections()
|
||||||
@ -99,6 +100,8 @@ void ComicVineDialog::setComics(const QList<ComicDB> & comics)
|
|||||||
|
|
||||||
void ComicVineDialog::show()
|
void ComicVineDialog::show()
|
||||||
{
|
{
|
||||||
|
QDialog::show();
|
||||||
|
|
||||||
currentIndex = 0;
|
currentIndex = 0;
|
||||||
|
|
||||||
if(comics.length() == 1)
|
if(comics.length() == 1)
|
||||||
@ -106,7 +109,7 @@ void ComicVineDialog::show()
|
|||||||
ComicDB singleComic = comics[0];
|
ComicDB singleComic = comics[0];
|
||||||
QString title = singleComic.getTitleOrPath();
|
QString title = singleComic.getTitleOrPath();
|
||||||
titleHeader->setSubTitle(title);
|
titleHeader->setSubTitle(title);
|
||||||
content->setCurrentWidget(searchSingleComic);
|
content->setCurrentIndex(0);
|
||||||
|
|
||||||
comicVineClient->search(title);
|
comicVineClient->search(title);
|
||||||
}else if(comics.length()>1)
|
}else if(comics.length()>1)
|
||||||
@ -114,7 +117,7 @@ void ComicVineDialog::show()
|
|||||||
titleHeader->setSubTitle(tr("%1 comics selected").arg(comics.length()));
|
titleHeader->setSubTitle(tr("%1 comics selected").arg(comics.length()));
|
||||||
content->setCurrentWidget(seriesQuestion);
|
content->setCurrentWidget(seriesQuestion);
|
||||||
}
|
}
|
||||||
QDialog::show();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ComicVineDialog::doLoading()
|
void ComicVineDialog::doLoading()
|
||||||
@ -136,7 +139,9 @@ void ComicVineDialog::doLoading()
|
|||||||
|
|
||||||
void ComicVineDialog::debugClientResults(const QString & string)
|
void ComicVineDialog::debugClientResults(const QString & string)
|
||||||
{
|
{
|
||||||
|
content->setCurrentWidget(searchSingleComic);
|
||||||
QMessageBox::information(0,"-Response-", string);
|
QMessageBox::information(0,"-Response-", string);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------
|
//---------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user