From c51ec4bd5df63c53c64dff03b856a87a41b7068a Mon Sep 17 00:00:00 2001 From: Gary Wang Date: Sun, 18 Jun 2023 22:54:41 +0800 Subject: [PATCH] fix: avoid hard-code the size of the settings dialog --- app/settingsdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/settingsdialog.cpp b/app/settingsdialog.cpp index 419f0fb..4740735 100644 --- a/app/settingsdialog.cpp +++ b/app/settingsdialog.cpp @@ -85,7 +85,7 @@ SettingsDialog::SettingsDialog(QWidget *parent) Settings::instance()->setInitWindowSizeBehavior(_iws_options.at(index).first); }); - this->setMinimumSize(300, 120); // not sure why it complain "Unable to set geometry" + adjustSize(); setWindowFlag(Qt::WindowContextHelpButtonHint, false); }