Статус задачи обновляется в ГУИ

This commit is contained in:
2025-05-23 16:28:16 +03:00
parent a499b2b403
commit 0bdaa7ed5e
11 changed files with 91 additions and 42 deletions

View File

@@ -84,6 +84,8 @@ void DialogCheckTask::on_btnWrong_clicked()
if(QMessageBox::warning(this, tr("Attention!"), tr("Change task status?\nThe status will be set: 'failed'"), QMessageBox::Ok, QMessageBox::Cancel) == QMessageBox::Ok)
{
connectorToServer->sendQueryToDB(TypeQueryToDB::TYPE_QUERY_CHANGE_STATUS_REPORT_TASK_FIM_TO_TRAINEE, id, (void*)&status);
//this->close();
this->parentWidget()->close();
}
}
@@ -95,5 +97,7 @@ void DialogCheckTask::on_btnRight_clicked()
if(QMessageBox::warning(this, tr("Attention!"), tr("Change task status?\nThe status will be set: 'completed'"), QMessageBox::Ok, QMessageBox::Cancel) == QMessageBox::Ok)
{
connectorToServer->sendQueryToDB(TypeQueryToDB::TYPE_QUERY_CHANGE_STATUS_REPORT_TASK_FIM_TO_TRAINEE, id, (void*)&status);
//this->close();
this->parentWidget()->close();
}
}