mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
Set minimum width of the left panel in the preferences
Change also the default width and set it to the minimum. This minimum width prevents the horizontal scrollbar from appearing. The size of the items in the list depends on the Qt style, so the left panel could be few pixels larger than required with some of them.
This commit is contained in:
parent
f7f1c81238
commit
36464fcd59
2 changed files with 8 additions and 2 deletions
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue