diff options
author | saturneric <[email protected]> | 2023-11-07 07:57:28 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-11-07 07:57:28 +0000 |
commit | 4dcd2ac8c4f673fc21c4cf0072d6cb648ca64e7e (patch) | |
tree | d5e09d3170922aa288877344a8a90905b0c02d62 /src/ui/dialog/keypair_details/KeyDetailsDialog.cpp | |
parent | refactor: remove CommonUtils at core (diff) | |
download | GpgFrontend-4dcd2ac8c4f673fc21c4cf0072d6cb648ca64e7e.tar.gz GpgFrontend-4dcd2ac8c4f673fc21c4cf0072d6cb648ca64e7e.zip |
refactor: separate typedef and impl
Diffstat (limited to 'src/ui/dialog/keypair_details/KeyDetailsDialog.cpp')
-rw-r--r-- | src/ui/dialog/keypair_details/KeyDetailsDialog.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/ui/dialog/keypair_details/KeyDetailsDialog.cpp b/src/ui/dialog/keypair_details/KeyDetailsDialog.cpp index 4d07232b..012d2a24 100644 --- a/src/ui/dialog/keypair_details/KeyDetailsDialog.cpp +++ b/src/ui/dialog/keypair_details/KeyDetailsDialog.cpp @@ -28,10 +28,11 @@ #include "KeyDetailsDialog.h" -#include "KeyPairDetailTab.h" -#include "KeyPairOperaTab.h" -#include "KeyPairSubkeyTab.h" -#include "KeyPairUIDTab.h" +#include "core/GpgModel.h" +#include "ui/dialog/keypair_details/KeyPairDetailTab.h" +#include "ui/dialog/keypair_details/KeyPairOperaTab.h" +#include "ui/dialog/keypair_details/KeyPairSubkeyTab.h" +#include "ui/dialog/keypair_details/KeyPairUIDTab.h" namespace GpgFrontend::UI { KeyDetailsDialog::KeyDetailsDialog(const GpgKey& key, QWidget* parent) @@ -45,14 +46,14 @@ KeyDetailsDialog::KeyDetailsDialog(const GpgKey& key, QWidget* parent) tab_widget_->addTab(new KeyPairOperaTab(key.GetId(), tab_widget_), _("Operations")); - auto* mainLayout = new QVBoxLayout; - mainLayout->addWidget(tab_widget_); + auto* main_layout = new QVBoxLayout; + main_layout->addWidget(tab_widget_); #ifdef MACOS setAttribute(Qt::WA_LayoutUsesWidgetRect); #endif this->setAttribute(Qt::WA_DeleteOnClose, true); - this->setLayout(mainLayout); + this->setLayout(main_layout); this->setWindowTitle(_("Key Details")); this->setModal(true); |