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