aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/keypair_details/KeyDetailsDialog.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-12-13 16:43:17 +0000
committerSaturneric <[email protected]>2021-12-13 16:43:17 +0000
commit71bec7d8b0715bfc2ac953ef8051c96fa27c0682 (patch)
treedccc073271c4165f375783ed95aa839099a19e60 /src/ui/keypair_details/KeyDetailsDialog.cpp
parentMerge pull request #31 from saturneric/develop-ui (diff)
downloadGpgFrontend-71bec7d8b0715bfc2ac953ef8051c96fa27c0682.tar.gz
GpgFrontend-71bec7d8b0715bfc2ac953ef8051c96fa27c0682.zip
Improve UI & Fixed.
Diffstat (limited to '')
-rw-r--r--src/ui/keypair_details/KeyDetailsDialog.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/keypair_details/KeyDetailsDialog.cpp b/src/ui/keypair_details/KeyDetailsDialog.cpp
index f3cab771..3864820f 100644
--- a/src/ui/keypair_details/KeyDetailsDialog.cpp
+++ b/src/ui/keypair_details/KeyDetailsDialog.cpp
@@ -35,11 +35,15 @@ KeyDetailsDialog::KeyDetailsDialog(const GpgKey& key, QWidget* parent)
auto* mainLayout = new QVBoxLayout;
mainLayout->addWidget(tabWidget);
+#ifdef MACOS
+ setAttribute(Qt::WA_LayoutUsesWidgetRect);
+#endif
this->setAttribute(Qt::WA_DeleteOnClose, true);
this->setLayout(mainLayout);
this->setWindowTitle(_("Key Details"));
this->setModal(true);
- this->setMinimumSize(380, 620);
+ this->setMinimumSize({520, 800});
+ this->resize(this->minimumSize());
this->show();
}
} // namespace GpgFrontend::UI