mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 13:04:28 -04:00
goBack added to Comic Vine dialog
This commit is contained in:
@ -90,6 +90,7 @@ void ComicVineDialog::doConnections()
|
|||||||
{
|
{
|
||||||
connect(closeButton,SIGNAL(clicked()),this,SLOT(close()));
|
connect(closeButton,SIGNAL(clicked()),this,SLOT(close()));
|
||||||
connect(nextButton,SIGNAL(clicked()),this,SLOT(goNext()));
|
connect(nextButton,SIGNAL(clicked()),this,SLOT(goNext()));
|
||||||
|
connect(backButton,SIGNAL(clicked()),this,SLOT(goBack()));
|
||||||
connect(searchButton,SIGNAL(clicked()),this,SLOT(search()));
|
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)
|
void ComicVineDialog::setComics(const QList<ComicDB> & comics)
|
||||||
{
|
{
|
||||||
this->comics = comics;
|
this->comics = comics;
|
||||||
@ -173,6 +188,7 @@ void ComicVineDialog::doLoading()
|
|||||||
|
|
||||||
l->addStretch();
|
l->addStretch();
|
||||||
l->addWidget(bw,0,Qt::AlignHCenter);
|
l->addWidget(bw,0,Qt::AlignHCenter);
|
||||||
|
l->addStretch();
|
||||||
|
|
||||||
l->setContentsMargins(0,0,0,0);
|
l->setContentsMargins(0,0,0,0);
|
||||||
w->setLayout(l);
|
w->setLayout(l);
|
||||||
|
@ -35,6 +35,7 @@ public slots:
|
|||||||
void show();
|
void show();
|
||||||
protected slots:
|
protected slots:
|
||||||
void goNext();
|
void goNext();
|
||||||
|
void goBack();
|
||||||
void debugClientResults(const QString & string);
|
void debugClientResults(const QString & string);
|
||||||
//show widget methods
|
//show widget methods
|
||||||
void showSeriesQuestion();
|
void showSeriesQuestion();
|
||||||
|
@ -10,7 +10,7 @@ SearchSingleComic::SearchSingleComic(QWidget * parent)
|
|||||||
:QWidget(parent)
|
:QWidget(parent)
|
||||||
{
|
{
|
||||||
|
|
||||||
QLabel * label = new QLabel(tr("No results found, please provide some aditional information. At least one field is needed."));
|
QLabel * label = new QLabel(tr("Please provide some aditional information. At least one field is needed."));
|
||||||
label->setStyleSheet("QLabel {color:white; font-size:12px;font-family:Arial;}");
|
label->setStyleSheet("QLabel {color:white; font-size:12px;font-family:Arial;}");
|
||||||
|
|
||||||
titleEdit = new ScraperLineEdit(tr("Title:"));
|
titleEdit = new ScraperLineEdit(tr("Title:"));
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
SearchVolume::SearchVolume(QWidget * parent)
|
SearchVolume::SearchVolume(QWidget * parent)
|
||||||
:QWidget(parent)
|
:QWidget(parent)
|
||||||
{
|
{
|
||||||
QLabel * label = new QLabel(tr("No results found, please provide some aditional information."));
|
QLabel * label = new QLabel(tr("Please provide some aditional information."));
|
||||||
label->setStyleSheet("QLabel {color:white; font-size:12px;font-family:Arial;}");
|
label->setStyleSheet("QLabel {color:white; font-size:12px;font-family:Arial;}");
|
||||||
|
|
||||||
volumeEdit = new ScraperLineEdit(tr("Series:"));
|
volumeEdit = new ScraperLineEdit(tr("Series:"));
|
||||||
|
Reference in New Issue
Block a user