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() ...@@ -226,6 +226,9 @@ void SettingsBase::initConfig()
configWidget.GbViewStyle->setVisible(possibleViews.count() > 1); configWidget.GbViewStyle->setVisible(possibleViews.count() > 1);
KWindowConfig::restoreWindowSize(configDialog->windowHandle(), KSharedConfig::openConfig()->group("ConfigDialog")); KWindowConfig::restoreWindowSize(configDialog->windowHandle(), KSharedConfig::openConfig()->group("ConfigDialog"));
connect(configDialog, &KConfigDialog::accepted, this, &SettingsBase::configUpdated); 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) void SettingsBase::initMenuList(MenuItem *parent)
......
...@@ -2,14 +2,6 @@ ...@@ -2,14 +2,6 @@
<ui version="4.0"> <ui version="4.0">
<class>ConfigDialog</class> <class>ConfigDialog</class>
<widget class="QWidget" name="ConfigDialog"> <widget class="QWidget" name="ConfigDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>491</width>
<height>141</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout">
<item row="0" column="0"> <item row="0" column="0">
<widget class="QGroupBox" name="GbViewStyle"> <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