1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-23 21:14:33 +00:00

Merge pull request #2031 from pmzqla/panel

Set minimum width of the left panel in the preferences
This commit is contained in:
sledgehammer999 2014-10-18 13:43:40 +03:00
commit aca4731145
2 changed files with 8 additions and 2 deletions

View File

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

View File

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