mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Show the automatic volume text that is going to be used in comic vine dialog
The user can chose to use it or edit it before starting the search.
This commit is contained in:
parent
160604040e
commit
8b4b586acc
@ -123,13 +123,7 @@ void ComicVineDialog::goNext()
|
||||
QString volumeSearchString = comics[0].getParentFolderName();
|
||||
mode = Volume;
|
||||
|
||||
if (volumeSearchString.isEmpty())
|
||||
showSearchVolume();
|
||||
else {
|
||||
status = AutoSearching;
|
||||
showLoading(tr("Looking for volume..."));
|
||||
searchVolume(volumeSearchString);
|
||||
}
|
||||
showSearchVolume(volumeSearchString);
|
||||
} else {
|
||||
status = AutoSearching;
|
||||
mode = SingleComicInList;
|
||||
@ -340,8 +334,10 @@ void ComicVineDialog::showSearchSingleComic()
|
||||
toggleSkipButton();
|
||||
}
|
||||
|
||||
void ComicVineDialog::showSearchVolume()
|
||||
void ComicVineDialog::showSearchVolume(const QString &volume)
|
||||
{
|
||||
searchVolumeWidget->setVolumeInfo(volume);
|
||||
|
||||
status = AskingForInfo;
|
||||
content->setCurrentWidget(searchVolumeWidget);
|
||||
backButton->setHidden(true);
|
||||
|
@ -46,7 +46,7 @@ protected slots:
|
||||
// show widget methods
|
||||
void showSeriesQuestion();
|
||||
void showSearchSingleComic();
|
||||
void showSearchVolume();
|
||||
void showSearchVolume(const QString &volume = "");
|
||||
void showLoading(const QString &message = "");
|
||||
void search();
|
||||
void searchVolume(const QString &v, int page = 1);
|
||||
|
@ -30,7 +30,12 @@ void SearchVolume::clean()
|
||||
volumeEdit->clear();
|
||||
}
|
||||
|
||||
QString SearchVolume::getVolumeInfo()
|
||||
void SearchVolume::setVolumeInfo(const QString &volume)
|
||||
{
|
||||
volumeEdit->setText(volume);
|
||||
}
|
||||
|
||||
QString SearchVolume::getVolumeInfo() const
|
||||
{
|
||||
return volumeEdit->text();
|
||||
}
|
||||
|
@ -11,8 +11,9 @@ class SearchVolume : public QWidget
|
||||
public:
|
||||
SearchVolume(QWidget *parent = nullptr);
|
||||
void clean();
|
||||
void setVolumeInfo(const QString &volume);
|
||||
public slots:
|
||||
QString getVolumeInfo();
|
||||
QString getVolumeInfo() const;
|
||||
|
||||
private:
|
||||
ScraperLineEdit *volumeEdit;
|
||||
|
Loading…
Reference in New Issue
Block a user