forked from qt-creator/qt-creator
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 <eike.ziller@qt.io>
This commit is contained in:
@@ -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 |
|
||||
|
Reference in New Issue
Block a user