Gui: Remove unnecessary minimumSizes from Preferences

QT treats setting minimum size very seriously - it applies even if
the size required by the control is smaller than specified resulting in
rendering too small controls.
This commit is contained in:
Kacper Donat
2024-07-27 23:34:10 +02:00
parent 065295de43
commit 484199dbce
12 changed files with 51 additions and 489 deletions

View File

@@ -21,11 +21,34 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="MatGui::PrefMaterialTreeWidget" name="widgetMaterial" native="true"/>
<widget class="MatGui::PrefMaterialTreeWidget" name="widgetMaterial" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::MinimumExpanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<customwidgets>

View File

@@ -131,18 +131,6 @@ will be listed as available.</string>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>20</height>
</size>
</property>
<property name="baseSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="prefEntry" stdset="0">
<cstring>CustomMaterialsDir</cstring>
</property>