Skip to content

Commit 7ae4540

Browse files
committed
qt: make receive coins tab look more consistent with send coins tab
Use a GridLayout instead of a FormLayout. This makes the alignment of the labels consistent between the tabs.
1 parent 2315cc8 commit 7ae4540

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

src/qt/forms/receivecoinsdialog.ui

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
</property>
1313
<layout class="QVBoxLayout" name="verticalLayout">
1414
<item>
15-
<layout class="QFormLayout" name="formLayout">
16-
<property name="fieldGrowthPolicy">
17-
<enum>QFormLayout::AllNonFixedFieldsGrow</enum>
18-
</property>
15+
<layout class="QGridLayout" name="gridLayout">
1916
<item row="3" column="0">
2017
<widget class="QLabel" name="label">
2118
<property name="text">
2219
<string>&amp;Amount:</string>
2320
</property>
21+
<property name="alignment">
22+
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
23+
</property>
2424
<property name="buddy">
2525
<cstring>reqAmount</cstring>
2626
</property>
@@ -44,6 +44,9 @@
4444
<property name="text">
4545
<string>&amp;Label:</string>
4646
</property>
47+
<property name="alignment">
48+
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
49+
</property>
4750
<property name="buddy">
4851
<cstring>reqLabel</cstring>
4952
</property>
@@ -61,6 +64,9 @@
6164
<property name="text">
6265
<string>&amp;Message:</string>
6366
</property>
67+
<property name="alignment">
68+
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
69+
</property>
6470
<property name="buddy">
6571
<cstring>reqMessage</cstring>
6672
</property>
@@ -99,6 +105,19 @@
99105
</item>
100106
</layout>
101107
</item>
108+
<item>
109+
<spacer name="verticalSpacer">
110+
<property name="orientation">
111+
<enum>Qt::Vertical</enum>
112+
</property>
113+
<property name="sizeHint" stdset="0">
114+
<size>
115+
<width>20</width>
116+
<height>40</height>
117+
</size>
118+
</property>
119+
</spacer>
120+
</item>
102121
<item>
103122
<layout class="QHBoxLayout" name="horizontalLayout">
104123
<item>

0 commit comments

Comments
 (0)