From 62406d53221fac74240393bda1e6402ed759037d Mon Sep 17 00:00:00 2001 From: cc9cii Date: Tue, 23 Sep 2014 07:28:55 +1000 Subject: [PATCH] Use reasonable values for the spinbox. --- apps/opencs/view/settings/dialog.cpp | 2 ++ files/ui/settingstab.ui | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/apps/opencs/view/settings/dialog.cpp b/apps/opencs/view/settings/dialog.cpp index d35492ea2..561eccc5c 100644 --- a/apps/opencs/view/settings/dialog.cpp +++ b/apps/opencs/view/settings/dialog.cpp @@ -302,6 +302,8 @@ void CSVSettings::Dialog::buildPages() // subview if(model()->hasSettingDefinitions("SubView/minimum width")) sbMinSubViewWidth->setValue(model()->settingValue("SubView/minimum width").toInt()); + else + sbMinSubViewWidth->setValue(325); SettingWindow::createPages (); diff --git a/files/ui/settingstab.ui b/files/ui/settingstab.ui index 5a8d71976..2aafdeb00 100644 --- a/files/ui/settingstab.ui +++ b/files/ui/settingstab.ui @@ -146,6 +146,12 @@ Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + 50 + + + 20000 + 5