aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/import_export/KeyImportDetailDialog.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-07-22 17:21:48 +0000
committerSaturneric <[email protected]>2022-07-22 17:21:48 +0000
commit8729378555af829cdb5ac1f0ab4b0dedff613644 (patch)
tree94ea60e78e3128c85429ac8f7b63fd7006beb96d /src/ui/import_export/KeyImportDetailDialog.cpp
parentfix: fix some issues (diff)
downloadGpgFrontend-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/KeyImportDetailDialog.cpp')
-rw-r--r--src/ui/import_export/KeyImportDetailDialog.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/import_export/KeyImportDetailDialog.cpp b/src/ui/import_export/KeyImportDetailDialog.cpp
index 766d2d81..31183a34 100644
--- a/src/ui/import_export/KeyImportDetailDialog.cpp
+++ b/src/ui/import_export/KeyImportDetailDialog.cpp
@@ -33,7 +33,8 @@
namespace GpgFrontend::UI {
KeyImportDetailDialog::KeyImportDetailDialog(GpgImportInformation result,
bool automatic, QWidget* parent)
- : QDialog(parent), m_result_(std::move(result)) {
+ : GeneralDialog(typeid(KeyImportDetailDialog).name(), parent),
+ m_result_(std::move(result)) {
// If no key for import found, just show a message
if (m_result_.considered == 0) {
if (automatic)
@@ -197,6 +198,7 @@ QString KeyImportDetailDialog::get_status_string(int keyStatus) {
void KeyImportDetailDialog::create_button_box() {
button_box_ = new QDialogButtonBox(QDialogButtonBox::Ok);
- connect(button_box_, &QDialogButtonBox::accepted, this, &KeyImportDetailDialog::close);
+ connect(button_box_, &QDialogButtonBox::accepted, this,
+ &KeyImportDetailDialog::close);
}
} // namespace GpgFrontend::UI