diff options
author | Saturneric <[email protected]> | 2022-07-22 17:21:48 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2022-07-22 17:21:48 +0000 |
commit | 8729378555af829cdb5ac1f0ab4b0dedff613644 (patch) | |
tree | 94ea60e78e3128c85429ac8f7b63fd7006beb96d /src/ui/import_export/KeyUploadDialog.cpp | |
parent | fix: fix some issues (diff) | |
download | GpgFrontend-8729378555af829cdb5ac1f0ab4b0dedff613644.tar.gz GpgFrontend-8729378555af829cdb5ac1f0ab4b0dedff613644.zip |
feat(ui): use general main window and dialog class
1. store window size and position
2. store icon size and style
Diffstat (limited to 'src/ui/import_export/KeyUploadDialog.cpp')
-rw-r--r-- | src/ui/import_export/KeyUploadDialog.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ui/import_export/KeyUploadDialog.cpp b/src/ui/import_export/KeyUploadDialog.cpp index a0436a8e..055f2e1f 100644 --- a/src/ui/import_export/KeyUploadDialog.cpp +++ b/src/ui/import_export/KeyUploadDialog.cpp @@ -30,15 +30,16 @@ #include <algorithm> +#include "core/function/GlobalSettingStation.h" #include "core/function/gpg/GpgKeyGetter.h" #include "core/function/gpg/GpgKeyImportExporter.h" -#include "core/function/GlobalSettingStation.h" namespace GpgFrontend::UI { KeyUploadDialog::KeyUploadDialog(const KeyIdArgsListPtr& keys_ids, QWidget* parent) - : QDialog(parent), m_keys_(GpgKeyGetter::GetInstance().GetKeys(keys_ids)) { + : GeneralDialog(typeid(KeyUploadDialog).name(), parent), + m_keys_(GpgKeyGetter::GetInstance().GetKeys(keys_ids)) { auto* pb = new QProgressBar(); pb->setRange(0, 0); pb->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); @@ -109,7 +110,8 @@ void KeyUploadDialog::slot_upload_key_to_server( // Send Post Data QNetworkReply* reply = qnam->post(request, postData); - connect(reply, &QNetworkReply::finished, this, &KeyUploadDialog::slot_upload_finished); + connect(reply, &QNetworkReply::finished, this, + &KeyUploadDialog::slot_upload_finished); // Keep Waiting while (reply->isRunning()) { |