cleanup
This commit is contained in:
parent
4d658a817b
commit
54020c0925
|
@ -62,10 +62,6 @@ std::string MainWindow::makeRequestToOfd(std::string captcha) {
|
||||||
return checkContent;
|
return checkContent;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::receiveSolvedCaptcha(std::string captcha) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void MainWindow::on_parseButton_clicked() {
|
void MainWindow::on_parseButton_clicked() {
|
||||||
QString s;
|
QString s;
|
||||||
switch (ui->tabWidget->currentIndex()) {
|
switch (ui->tabWidget->currentIndex()) {
|
||||||
|
@ -84,7 +80,6 @@ void MainWindow::on_parseButton_clicked() {
|
||||||
|
|
||||||
do {
|
do {
|
||||||
SolveCaptchaDialog dialog = SolveCaptchaDialog(this, &solved_captcha);
|
SolveCaptchaDialog dialog = SolveCaptchaDialog(this, &solved_captcha);
|
||||||
connect(&dialog, &SolveCaptchaDialog::solvedCaptcha, this, &MainWindow::receiveSolvedCaptcha);
|
|
||||||
dialog.exec();
|
dialog.exec();
|
||||||
is_captcha_solved = true;
|
is_captcha_solved = true;
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,6 @@ public:
|
||||||
void onDecodedData(std::string);
|
void onDecodedData(std::string);
|
||||||
|
|
||||||
std::string makeRequestToOfd(std::string captcha);
|
std::string makeRequestToOfd(std::string captcha);
|
||||||
void receiveSolvedCaptcha(std::string);
|
|
||||||
private slots:
|
private slots:
|
||||||
void on_parseButton_clicked();
|
void on_parseButton_clicked();
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,6 @@ void SolveCaptchaDialog::accept() {
|
||||||
} else {
|
} else {
|
||||||
solved_captcha->erase();
|
solved_captcha->erase();
|
||||||
solved_captcha->append(userInput);
|
solved_captcha->append(userInput);
|
||||||
// emit solvedCaptcha(userInput);
|
|
||||||
QDialog::accept();
|
QDialog::accept();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,11 +15,6 @@ public:
|
||||||
explicit SolveCaptchaDialog(QWidget *parent = nullptr, std::string* = nullptr) ;
|
explicit SolveCaptchaDialog(QWidget *parent = nullptr, std::string* = nullptr) ;
|
||||||
~SolveCaptchaDialog();
|
~SolveCaptchaDialog();
|
||||||
|
|
||||||
|
|
||||||
signals:
|
|
||||||
void solvedCaptcha(std::string);
|
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::SolveCaptchaDialog *ui;
|
Ui::SolveCaptchaDialog *ui;
|
||||||
std::string* solved_captcha;
|
std::string* solved_captcha;
|
||||||
|
|
Loading…
Reference in New Issue