fix weird spacing bug

This commit is contained in:
Roland W-H 2025-04-27 10:25:57 +01:00
parent 3b6b75ee48
commit 71d9590205
2 changed files with 39 additions and 27 deletions

View File

@ -10,7 +10,7 @@
<x>0</x>
<y>0</y>
<width>630</width>
<height>567</height>
<height>580</height>
</rect>
</property>
<property name="minimumSize">
@ -19,22 +19,16 @@
<height>567</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>630</width>
<height>567</height>
</size>
</property>
<property name="windowTitle">
<string>Platform Editor</string>
</property>
<widget class="QWidget" name="gridLayoutWidget">
<property name="geometry">
<rect>
<x>10</x>
<x>13</x>
<y>20</y>
<width>611</width>
<height>241</height>
<width>616</width>
<height>242</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout">
@ -54,10 +48,16 @@
<number>10</number>
</property>
<property name="verticalSpacing">
<number>5</number>
<number>6</number>
</property>
<item row="0" column="3">
<widget class="QCheckBox" name="plat_name_check">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string> </string>
</property>
<property name="checked">
<bool>true</bool>
</property>
@ -336,7 +336,7 @@
<property name="geometry">
<rect>
<x>482</x>
<y>534</y>
<y>545</y>
<width>141</width>
<height>24</height>
</rect>
@ -354,7 +354,7 @@
<property name="geometry">
<rect>
<x>8</x>
<y>540</y>
<y>549</y>
<width>191</width>
<height>21</height>
</rect>
@ -366,7 +366,7 @@
<widget class="QLabel" name="active_lab">
<property name="geometry">
<rect>
<x>577</x>
<x>572</x>
<y>10</y>
<width>61</width>
<height>16</height>
@ -382,16 +382,28 @@
<widget class="QWidget" name="gridLayoutWidget_2">
<property name="geometry">
<rect>
<x>11</x>
<y>309</y>
<width>611</width>
<height>31</height>
<x>19</x>
<y>307</y>
<width>591</width>
<height>40</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<property name="verticalSpacing">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<item row="0" column="3">
<widget class="FastEditQDoubleSpinBox" name="first_tier_fee_box">
<property name="font">
@ -467,7 +479,7 @@
<property name="geometry">
<rect>
<x>532</x>
<y>481</y>
<y>487</y>
<width>91</width>
<height>24</height>
</rect>
@ -488,7 +500,7 @@
<property name="geometry">
<rect>
<x>440</x>
<y>481</y>
<y>487</y>
<width>91</width>
<height>24</height>
</rect>
@ -505,8 +517,8 @@
<widget class="QLabel" name="val_above_lab">
<property name="geometry">
<rect>
<x>6</x>
<y>479</y>
<x>10</x>
<y>486</y>
<width>421</width>
<height>21</height>
</rect>
@ -520,11 +532,11 @@
<string>on the value above £ there is no charge</string>
</property>
</widget>
<widget class="QLabel" name="label">
<widget class="QLabel" name="fund_plat_fee_lab">
<property name="geometry">
<rect>
<x>10</x>
<y>284</y>
<y>285</y>
<width>151</width>
<height>16</height>
</rect>

View File

@ -299,7 +299,7 @@ class PlatformEdit(QWidget):
grid_height = int(round(28.5 * self.fund_fee_rows))
else:
grid_height = int(round(28.5 * (self.fund_fee_rows + 1)))
self.gridLayoutWidget_2.setGeometry(QRect(11, 309, 611, grid_height))
self.gridLayoutWidget_2.setGeometry(QRect(19, 307, 591, grid_height))
for i in range(len(widgets)):
if loading:
self.gridLayout_2.addWidget(widgets[i], x + 1, i, 1, 1)
@ -337,7 +337,7 @@ class PlatformEdit(QWidget):
widget.hide()
self.widgets_list_list.pop()
self.fund_fee_rows -= 1
self.gridLayoutWidget_2.setGeometry(11, 309, 611, int(round(28.5 * self.fund_fee_rows, 0)))
self.gridLayoutWidget_2.setGeometry(19, 307, 591, int(round(28.5 * self.fund_fee_rows, 0)))
if self.fund_fee_rows < 2:
self.del_row_but.setEnabled(False)