Skip to content

Commit 36e680c

Browse files
committed
G27: Improve layout a bit
1 parent 5da1b44 commit 36e680c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

rpcs3/rpcs3qt/emulated_logitech_g27_settings_dialog.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -274,13 +274,15 @@ class Mapping : public QGroupBox
274274

275275
update_display();
276276

277-
horizontal_layout->addWidget(label);
278-
horizontal_layout->addWidget(m_display_box);
277+
horizontal_layout->addWidget(label, 1);
278+
horizontal_layout->addWidget(m_display_box, 2);
279279
if (m_button_status)
280-
horizontal_layout->addWidget(m_button_status);
281-
horizontal_layout->addWidget(m_map_button);
282-
horizontal_layout->addWidget(m_unmap_button);
283-
horizontal_layout->addWidget(m_reverse_checkbox);
280+
horizontal_layout->addWidget(m_button_status, 1);
281+
else
282+
horizontal_layout->addStretch(1); // For a more consistent layout
283+
horizontal_layout->addWidget(m_map_button, 1);
284+
horizontal_layout->addWidget(m_unmap_button, 1);
285+
horizontal_layout->addWidget(m_reverse_checkbox, 1);
284286

285287
if (m_axis_status)
286288
layout->addWidget(m_axis_status);

0 commit comments

Comments
 (0)