Fix spacing for translated KBM GUI (#2670)

This commit is contained in:
rainmakerv2 2025-03-23 22:39:15 +08:00 committed by GitHub
parent 1f9ac53c28
commit 6f944ab117
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,10 +11,16 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>1193</width> <width>1234</width>
<height>754</height> <height>796</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="focusPolicy"> <property name="focusPolicy">
<enum>Qt::FocusPolicy::StrongFocus</enum> <enum>Qt::FocusPolicy::StrongFocus</enum>
</property> </property>
@ -38,8 +44,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>1173</width> <width>1214</width>
<height>704</height> <height>746</height>
</rect> </rect>
</property> </property>
<widget class="QWidget" name="layoutWidget"> <widget class="QWidget" name="layoutWidget">
@ -47,8 +53,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>1171</width> <width>1211</width>
<height>703</height> <height>741</height>
</rect> </rect>
</property> </property>
<layout class="QHBoxLayout" name="RemapLayout"> <layout class="QHBoxLayout" name="RemapLayout">
@ -63,7 +69,7 @@
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -149,6 +155,12 @@
<layout class="QHBoxLayout" name="layout_dpad_left_right"> <layout class="QHBoxLayout" name="layout_dpad_left_right">
<item> <item>
<widget class="QGroupBox" name="gb_dpad_left"> <widget class="QGroupBox" name="gb_dpad_left">
<property name="minimumSize">
<size>
<width>160</width>
<height>0</height>
</size>
</property>
<property name="title"> <property name="title">
<string>Left</string> <string>Left</string>
</property> </property>
@ -180,6 +192,12 @@
</item> </item>
<item> <item>
<widget class="QGroupBox" name="gb_dpad_right"> <widget class="QGroupBox" name="gb_dpad_right">
<property name="minimumSize">
<size>
<width>160</width>
<height>0</height>
</size>
</property>
<property name="title"> <property name="title">
<string>Right</string> <string>Right</string>
</property> </property>
@ -282,11 +300,17 @@
<item> <item>
<widget class="QGroupBox" name="LeftStickDeadZoneGB"> <widget class="QGroupBox" name="LeftStickDeadZoneGB">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="maximumSize">
<size>
<width>344</width>
<height>16777215</height>
</size>
</property>
<property name="title"> <property name="title">
<string>Left Analog Halfmode</string> <string>Left Analog Halfmode</string>
</property> </property>
@ -319,7 +343,7 @@
<item> <item>
<widget class="QGroupBox" name="gb_left_stick"> <widget class="QGroupBox" name="gb_left_stick">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -405,6 +429,12 @@
<layout class="QHBoxLayout" name="layout_left_stick_left_right"> <layout class="QHBoxLayout" name="layout_left_stick_left_right">
<item> <item>
<widget class="QGroupBox" name="gb_left_stick_left"> <widget class="QGroupBox" name="gb_left_stick_left">
<property name="minimumSize">
<size>
<width>160</width>
<height>0</height>
</size>
</property>
<property name="title"> <property name="title">
<string>Left</string> <string>Left</string>
</property> </property>
@ -436,6 +466,12 @@
</item> </item>
<item> <item>
<widget class="QGroupBox" name="gb_left_stick_right"> <widget class="QGroupBox" name="gb_left_stick_right">
<property name="minimumSize">
<size>
<width>160</width>
<height>0</height>
</size>
</property>
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>179</width> <width>179</width>
@ -528,18 +564,24 @@
</layout> </layout>
</item> </item>
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout_middle" stretch="0,0,0,0,0,0"> <layout class="QVBoxLayout" name="verticalLayout_middle" stretch="0,0,0,0,0">
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<item> <item>
<widget class="QGroupBox" name="ProfileGroupBox"> <widget class="QGroupBox" name="ProfileGroupBox">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred"> <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="font"> <property name="font">
<font> <font>
<pointsize>12</pointsize> <pointsize>12</pointsize>
@ -652,6 +694,18 @@
<layout class="QVBoxLayout" name="layout_l1_l2"> <layout class="QVBoxLayout" name="layout_l1_l2">
<item> <item>
<widget class="QGroupBox" name="gb_l1"> <widget class="QGroupBox" name="gb_l1">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>160</width>
<height>0</height>
</size>
</property>
<property name="title"> <property name="title">
<string>L1</string> <string>L1</string>
</property> </property>
@ -670,6 +724,12 @@
</property> </property>
<item> <item>
<widget class="QPushButton" name="L1Button"> <widget class="QPushButton" name="L1Button">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="focusPolicy"> <property name="focusPolicy">
<enum>Qt::FocusPolicy::NoFocus</enum> <enum>Qt::FocusPolicy::NoFocus</enum>
</property> </property>
@ -683,6 +743,12 @@
</item> </item>
<item> <item>
<widget class="QGroupBox" name="gb_l2"> <widget class="QGroupBox" name="gb_l2">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>160</width> <width>160</width>
@ -707,6 +773,12 @@
</property> </property>
<item> <item>
<widget class="QPushButton" name="L2Button"> <widget class="QPushButton" name="L2Button">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="focusPolicy"> <property name="focusPolicy">
<enum>Qt::FocusPolicy::NoFocus</enum> <enum>Qt::FocusPolicy::NoFocus</enum>
</property> </property>
@ -724,6 +796,18 @@
<layout class="QVBoxLayout" name="layout_system_buttons" stretch="0"> <layout class="QVBoxLayout" name="layout_system_buttons" stretch="0">
<item> <item>
<widget class="QGroupBox" name="groupBox_4"> <widget class="QGroupBox" name="groupBox_4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="font"> <property name="font">
<font> <font>
<bold>true</bold> <bold>true</bold>
@ -735,6 +819,12 @@
<layout class="QVBoxLayout" name="verticalLayout_20"> <layout class="QVBoxLayout" name="verticalLayout_20">
<item> <item>
<widget class="QPushButton" name="TextEditorButton"> <widget class="QPushButton" name="TextEditorButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="focusPolicy"> <property name="focusPolicy">
<enum>Qt::FocusPolicy::NoFocus</enum> <enum>Qt::FocusPolicy::NoFocus</enum>
</property> </property>
@ -745,6 +835,12 @@
</item> </item>
<item> <item>
<widget class="QPushButton" name="HelpButton"> <widget class="QPushButton" name="HelpButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="focusPolicy"> <property name="focusPolicy">
<enum>Qt::FocusPolicy::NoFocus</enum> <enum>Qt::FocusPolicy::NoFocus</enum>
</property> </property>
@ -762,6 +858,12 @@
<layout class="QVBoxLayout" name="layout_r1_r2"> <layout class="QVBoxLayout" name="layout_r1_r2">
<item> <item>
<widget class="QGroupBox" name="gb_r1"> <widget class="QGroupBox" name="gb_r1">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>160</width> <width>160</width>
@ -786,6 +888,12 @@
</property> </property>
<item> <item>
<widget class="QPushButton" name="R1Button"> <widget class="QPushButton" name="R1Button">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="focusPolicy"> <property name="focusPolicy">
<enum>Qt::FocusPolicy::NoFocus</enum> <enum>Qt::FocusPolicy::NoFocus</enum>
</property> </property>
@ -799,6 +907,18 @@
</item> </item>
<item> <item>
<widget class="QGroupBox" name="gb_r2"> <widget class="QGroupBox" name="gb_r2">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>160</width>
<height>0</height>
</size>
</property>
<property name="title"> <property name="title">
<string>R2</string> <string>R2</string>
</property> </property>
@ -817,6 +937,12 @@
</property> </property>
<item> <item>
<widget class="QPushButton" name="R2Button"> <widget class="QPushButton" name="R2Button">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="focusPolicy"> <property name="focusPolicy">
<enum>Qt::FocusPolicy::NoFocus</enum> <enum>Qt::FocusPolicy::NoFocus</enum>
</property> </property>
@ -857,7 +983,7 @@
<widget class="QLabel" name="l_controller"> <widget class="QLabel" name="l_controller">
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>420</width> <width>500</width>
<height>200</height> <height>200</height>
</size> </size>
</property> </property>
@ -887,6 +1013,12 @@
<layout class="QVBoxLayout" name="verticalLayout_4"> <layout class="QVBoxLayout" name="verticalLayout_4">
<item> <item>
<widget class="QGroupBox" name="gb_l3"> <widget class="QGroupBox" name="gb_l3">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>160</width> <width>160</width>
@ -911,6 +1043,12 @@
</property> </property>
<item> <item>
<widget class="QPushButton" name="L3Button"> <widget class="QPushButton" name="L3Button">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="focusPolicy"> <property name="focusPolicy">
<enum>Qt::FocusPolicy::NoFocus</enum> <enum>Qt::FocusPolicy::NoFocus</enum>
</property> </property>
@ -924,12 +1062,30 @@
</item> </item>
<item> <item>
<widget class="QGroupBox" name="gb_touchpad"> <widget class="QGroupBox" name="gb_touchpad">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>160</width>
<height>0</height>
</size>
</property>
<property name="title"> <property name="title">
<string>Touchpad Click</string> <string>Touchpad Click</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_9"> <layout class="QVBoxLayout" name="verticalLayout_9">
<item> <item>
<widget class="QPushButton" name="TouchpadButton"> <widget class="QPushButton" name="TouchpadButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="focusPolicy"> <property name="focusPolicy">
<enum>Qt::FocusPolicy::NoFocus</enum> <enum>Qt::FocusPolicy::NoFocus</enum>
</property> </property>
@ -947,6 +1103,18 @@
<layout class="QVBoxLayout" name="verticalLayout_21"> <layout class="QVBoxLayout" name="verticalLayout_21">
<item> <item>
<widget class="QGroupBox" name="groupBox_5"> <widget class="QGroupBox" name="groupBox_5">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="title"> <property name="title">
<string>Mouse to Joystick</string> <string>Mouse to Joystick</string>
</property> </property>
@ -982,6 +1150,12 @@
<layout class="QVBoxLayout" name="verticalLayout_12"> <layout class="QVBoxLayout" name="verticalLayout_12">
<item> <item>
<widget class="QGroupBox" name="gb_r3"> <widget class="QGroupBox" name="gb_r3">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>160</width> <width>160</width>
@ -1006,6 +1180,12 @@
</property> </property>
<item> <item>
<widget class="QPushButton" name="R3Button"> <widget class="QPushButton" name="R3Button">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="focusPolicy"> <property name="focusPolicy">
<enum>Qt::FocusPolicy::NoFocus</enum> <enum>Qt::FocusPolicy::NoFocus</enum>
</property> </property>
@ -1019,9 +1199,15 @@
</item> </item>
<item> <item>
<widget class="QGroupBox" name="gb_options"> <widget class="QGroupBox" name="gb_options">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>145</width> <width>160</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -1043,6 +1229,12 @@
</property> </property>
<item> <item>
<widget class="QPushButton" name="OptionsButton"> <widget class="QPushButton" name="OptionsButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="focusPolicy"> <property name="focusPolicy">
<enum>Qt::FocusPolicy::NoFocus</enum> <enum>Qt::FocusPolicy::NoFocus</enum>
</property> </property>
@ -1064,6 +1256,12 @@
<layout class="QVBoxLayout" name="verticalLayout_14"> <layout class="QVBoxLayout" name="verticalLayout_14">
<item> <item>
<widget class="QGroupBox" name="MouseParamsBox"> <widget class="QGroupBox" name="MouseParamsBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font"> <property name="font">
<font> <font>
<bold>false</bold> <bold>false</bold>
@ -1196,6 +1394,25 @@
</item> </item>
</layout> </layout>
</item> </item>
<item>
<widget class="QLabel" name="MoreInfoLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<italic>true</italic>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>note: click Help Button/Special Keybindings for more information</string>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
@ -1203,19 +1420,6 @@
</item> </item>
</layout> </layout>
</item> </item>
<item>
<widget class="QLabel" name="MoreInfoLabel">
<property name="font">
<font>
<italic>true</italic>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>note: click Help Button/Special Keybindings for more information</string>
</property>
</widget>
</item>
</layout> </layout>
</item> </item>
<item> <item>
@ -1226,7 +1430,7 @@
<item> <item>
<widget class="QGroupBox" name="gb_face_buttons"> <widget class="QGroupBox" name="gb_face_buttons">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -1306,6 +1510,12 @@
<layout class="QHBoxLayout" name="layout_square_circle"> <layout class="QHBoxLayout" name="layout_square_circle">
<item> <item>
<widget class="QGroupBox" name="gb_square"> <widget class="QGroupBox" name="gb_square">
<property name="minimumSize">
<size>
<width>160</width>
<height>0</height>
</size>
</property>
<property name="title"> <property name="title">
<string>Square</string> <string>Square</string>
</property> </property>
@ -1337,6 +1547,12 @@
</item> </item>
<item> <item>
<widget class="QGroupBox" name="gb_circle"> <widget class="QGroupBox" name="gb_circle">
<property name="minimumSize">
<size>
<width>160</width>
<height>0</height>
</size>
</property>
<property name="title"> <property name="title">
<string>Circle</string> <string>Circle</string>
</property> </property>
@ -1444,6 +1660,12 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="maximumSize">
<size>
<width>344</width>
<height>16777215</height>
</size>
</property>
<property name="title"> <property name="title">
<string>Right Analog Halfmode</string> <string>Right Analog Halfmode</string>
</property> </property>
@ -1476,7 +1698,7 @@
<item> <item>
<widget class="QGroupBox" name="gb_right_stick"> <widget class="QGroupBox" name="gb_right_stick">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -1568,6 +1790,12 @@
<layout class="QHBoxLayout" name="layout_right_stick_left_right"> <layout class="QHBoxLayout" name="layout_right_stick_left_right">
<item> <item>
<widget class="QGroupBox" name="gb_right_stick_left"> <widget class="QGroupBox" name="gb_right_stick_left">
<property name="minimumSize">
<size>
<width>160</width>
<height>0</height>
</size>
</property>
<property name="title"> <property name="title">
<string>Left</string> <string>Left</string>
</property> </property>
@ -1599,6 +1827,12 @@
</item> </item>
<item> <item>
<widget class="QGroupBox" name="gb_right_stick_right"> <widget class="QGroupBox" name="gb_right_stick_right">
<property name="minimumSize">
<size>
<width>160</width>
<height>0</height>
</size>
</property>
<property name="title"> <property name="title">
<string>Right</string> <string>Right</string>
</property> </property>