Commit 64dec998 authored by Nate Graham's avatar Nate Graham
Browse files

Set a sane default size for the settings window

BUG: 406187
FIXED-IN: 5.22
parent 69b56bfb
......@@ -226,6 +226,9 @@ void SettingsBase::initConfig()
configWidget.GbViewStyle->setVisible(possibleViews.count() > 1);
KWindowConfig::restoreWindowSize(configDialog->windowHandle(), KSharedConfig::openConfig()->group("ConfigDialog"));
connect(configDialog, &KConfigDialog::accepted, this, &SettingsBase::configUpdated);
// Need to set size manually here since the .ui file doesn't produce the right
// autogenerated code to do it correctly
configDialog->resize(QSize(420, 300));
void SettingsBase::initMenuList(MenuItem *parent)
......@@ -2,14 +2,6 @@
<ui version="4.0">
<widget class="QWidget" name="ConfigDialog">
<property name="geometry">
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QGroupBox" name="GbViewStyle">
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment