all repos — mgba @ ffa2f62cf1291ed56a9e04b948e824b17aacf67c

mGBA Game Boy Advance Emulator

Qt: Fix palette view sizing
Jeffrey Pfau jeffrey@endrift.com
Sat, 30 May 2015 19:46:03 -0700
commit

ffa2f62cf1291ed56a9e04b948e824b17aacf67c

parent

f8362d680b1b684e4ee22986acc8320c65997aa6

1 files changed, 9 insertions(+), 42 deletions(-)

jump to
M src/platform/qt/PaletteView.uisrc/platform/qt/PaletteView.ui

@@ -14,18 +14,15 @@ <property name="windowTitle">

<string>Palette</string> </property> <layout class="QVBoxLayout" name="verticalLayout"> + <property name="sizeConstraint"> + <enum>QLayout::SetFixedSize</enum> + </property> <item> <layout class="QHBoxLayout" name="horizontalLayout"> <item> <spacer name="horizontalSpacer_2"> <property name="orientation"> <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> </property> </spacer> </item>

@@ -71,16 +68,16 @@ <spacer name="horizontalSpacer">

<property name="orientation"> <enum>Qt::Horizontal</enum> </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> </spacer> </item> <item> <widget class="QGroupBox" name="groupBox_2"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> <property name="title"> <string>Objects</string> </property>

@@ -115,12 +112,6 @@ <spacer name="horizontalSpacer_3">

<property name="orientation"> <enum>Qt::Horizontal</enum> </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> </spacer> </item> </layout>

@@ -129,12 +120,6 @@ <item>

<spacer name="verticalSpacer"> <property name="orientation"> <enum>Qt::Vertical</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>40</height> - </size> </property> </spacer> </item>

@@ -299,12 +284,6 @@ <spacer name="horizontalSpacer_4">

<property name="orientation"> <enum>Qt::Horizontal</enum> </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>0</height> - </size> - </property> </spacer> </item> <item>

@@ -319,12 +298,6 @@ <spacer name="horizontalSpacer_5">

<property name="orientation"> <enum>Qt::Horizontal</enum> </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>0</height> - </size> - </property> </spacer> </item> <item>

@@ -338,12 +311,6 @@ <item>

<spacer name="horizontalSpacer_6"> <property name="orientation"> <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>0</height> - </size> </property> </spacer> </item>