diff options
author | saturneric <[email protected]> | 2024-11-26 10:55:40 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-11-26 10:55:40 +0000 |
commit | 83be6ce63a832890592f8cec9e2102663f0e8a36 (patch) | |
tree | 040ddd5f9e180eaf8f5ae2d2eea902ede2c94074 /src/ui/UserInterfaceUtils.cpp | |
parent | feat: support verifying email through eml data (diff) | |
download | GpgFrontend-83be6ce63a832890592f8cec9e2102663f0e8a36.tar.gz GpgFrontend-83be6ce63a832890592f8cec9e2102663f0e8a36.zip |
feat: improve ui logic of email verification and make project structure better
Diffstat (limited to 'src/ui/UserInterfaceUtils.cpp')
-rw-r--r-- | src/ui/UserInterfaceUtils.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/ui/UserInterfaceUtils.cpp b/src/ui/UserInterfaceUtils.cpp index fc90fa7c..b8fc9961 100644 --- a/src/ui/UserInterfaceUtils.cpp +++ b/src/ui/UserInterfaceUtils.cpp @@ -91,35 +91,6 @@ void ImportUnknownKeyFromKeyserver( } } -void refresh_info_board(InfoBoardWidget *info_board, int status, - const QString &report_text) { - if (status < 0) { - info_board->SlotRefresh(report_text, INFO_ERROR_CRITICAL); - } else if (status > 0) { - info_board->SlotRefresh(report_text, INFO_ERROR_OK); - } else { - info_board->SlotRefresh(report_text, INFO_ERROR_WARN); - } -} - -void process_result_analyse(TextEdit *edit, InfoBoardWidget *info_board, - const GpgResultAnalyse &result_analyse) { - info_board->AssociateTabWidget(edit->tab_widget_); - refresh_info_board(info_board, result_analyse.GetStatus(), - result_analyse.GetResultReport()); -} - -void process_result_analyse(TextEdit *edit, InfoBoardWidget *info_board, - const GpgResultAnalyse &result_analyse_a, - const GpgResultAnalyse &result_analyse_b) { - info_board->AssociateTabWidget(edit->tab_widget_); - - refresh_info_board( - info_board, - std::min(result_analyse_a.GetStatus(), result_analyse_b.GetStatus()), - result_analyse_a.GetResultReport() + result_analyse_b.GetResultReport()); -} - void process_operation(QWidget *parent, const QString &waiting_title, const Thread::Task::TaskRunnable func, const Thread::Task::TaskCallback callback, |