From dba102ff618496b16c2f3b4772cea7a323946606 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Mon, 9 Apr 2018 15:45:35 +0200 Subject: [PATCH] SettingsDialog: Set a more reasonable default size Set the minimum size on first start to something reasonable. Currently the SettingsDialog starts out tiny on Linux and is unusable till resized for the first time with empty settings. Change-Id: I1e0f6dc0bc5a41ba53f655f81181fbba84da23df Reviewed-by: Eike Ziller --- src/plugins/coreplugin/dialogs/settingsdialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/coreplugin/dialogs/settingsdialog.cpp b/src/plugins/coreplugin/dialogs/settingsdialog.cpp index 7b2e7a6d6f8..b31281f17c1 100644 --- a/src/plugins/coreplugin/dialogs/settingsdialog.cpp +++ b/src/plugins/coreplugin/dialogs/settingsdialog.cpp @@ -546,7 +546,9 @@ void SettingsDialog::createGui() headerHLayout->addWidget(m_headerLabel); m_stackedLayout->setMargin(0); - m_stackedLayout->addWidget(new QWidget(this)); // no category selected, for example when filtering + QWidget *emptyWidget = new QWidget(this); + emptyWidget->setMinimumSize(QSize(500, 500)); + m_stackedLayout->addWidget(emptyWidget); // no category selected, for example when filtering QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Apply |