Restructure CacheConfigWidget layout
This restructuring allows for a more narrow minimum size of the CacheWidget.
MODIFY
src/cachesim/cacheconfigwidget.ui
src/cachesim/cacheconfigwidget.ui
<rect>
<x>0</x>
<y>0</y>
- <width>730</width>
+ <width>684</width>
<height>239</height>
</rect>
</property>
<item>
<widget class="QComboBox" name="presets">
<property name="sizePolicy">
- <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
+ <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</item>
<item>
<layout class="QGridLayout" name="gridLayout">
- <item row="3" column="1">
- <widget class="QSpinBox" name="lines">
- <property name="maximum">
- <number>10</number>
- </property>
- </widget>
- </item>
- <item row="1" column="0">
- <widget class="QLabel" name="label_2">
- <property name="text">
- <string>Ways:</string>
- </property>
- </widget>
- </item>
- <item row="1" column="2">
+ <item row="6" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Blocks:</string>
</property>
</widget>
</item>
- <item row="1" column="1">
- <widget class="QSpinBox" name="ways">
- <property name="maximum">
- <number>10</number>
- </property>
- </widget>
+ <item row="6" column="3">
+ <widget class="QComboBox" name="wrMiss"/>
</item>
- <item row="1" column="3">
- <widget class="QSpinBox" name="blocks">
- <property name="maximum">
- <number>10</number>
+ <item row="5" column="3">
+ <widget class="QComboBox" name="wrHit"/>
+ </item>
+ <item row="6" column="2">
+ <widget class="QLabel" name="label_10">
+ <property name="text">
+ <string>Wr. miss:</string>
</property>
</widget>
</item>
- <item row="3" column="0">
+ <item row="4" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Lines:</string>
</property>
</widget>
</item>
- <item row="3" column="2">
- <widget class="QLabel" name="label_8">
+ <item row="5" column="0">
+ <widget class="QLabel" name="label_2">
<property name="text">
- <string>Repl. policy:</string>
+ <string>Ways:</string>
</property>
</widget>
</item>
- <item row="3" column="3">
- <widget class="QComboBox" name="replacementPolicy"/>
- </item>
- <item row="5" column="0">
+ <item row="5" column="2">
<widget class="QLabel" name="label_9">
<property name="text">
<string>Wr. hit:</string>
</property>
</widget>
</item>
- <item row="5" column="2">
- <widget class="QLabel" name="label_10">
+ <item row="4" column="3">
+ <widget class="QComboBox" name="replacementPolicy"/>
+ </item>
+ <item row="4" column="2">
+ <widget class="QLabel" name="label_8">
<property name="text">
- <string>Wr. miss:</string>
+ <string>Repl. policy:</string>
+ </property>
+ </widget>
+ </item>
+ <item row="4" column="1">
+ <widget class="QSpinBox" name="lines">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="maximum">
+ <number>10</number>
</property>
</widget>
</item>
<item row="5" column="1">
- <widget class="QComboBox" name="wrHit"/>
+ <widget class="QSpinBox" name="ways">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="maximum">
+ <number>10</number>
+ </property>
+ </widget>
</item>
- <item row="5" column="3">
- <widget class="QComboBox" name="wrMiss"/>
+ <item row="6" column="1">
+ <widget class="QSpinBox" name="blocks">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="maximum">
+ <number>10</number>
+ </property>
+ </widget>
</item>
</layout>
</item>

Restructure CacheConfigWidget layout

This restructuring allows for a more narrow minimum size of the CacheWidget.