Browse Source

Merge pull request #2031 from pmzqla/panel

Set minimum width of the left panel in the preferences
adaptive-webui-19844
sledgehammer999 10 years ago
parent
commit
aca4731145
  1. 6
      src/preferences/options.ui
  2. 4
      src/preferences/options_imp.cpp

6
src/preferences/options.ui

@ -32,6 +32,12 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize">
<size>
<width>116</width>
<height>0</height>
</size>
</property>
<property name="frameShape"> <property name="frameShape">
<enum>QFrame::StyledPanel</enum> <enum>QFrame::StyledPanel</enum>
</property> </property>

4
src/preferences/options_imp.cpp

@ -310,8 +310,8 @@ void options_imp::loadWindowState() {
sizes << sizes_str.first().toInt(); sizes << sizes_str.first().toInt();
sizes << sizes_str.last().toInt(); sizes << sizes_str.last().toInt();
} else { } else {
sizes << 130; sizes << 116;
sizes << hsplitter->width()-130; sizes << hsplitter->width()-116;
} }
hsplitter->setSizes(sizes); hsplitter->setSizes(sizes);
} }

Loading…
Cancel
Save