diff options
| author | Dentomologist <dentomologist@gmail.com> | 2023-11-25 13:12:29 -0800 |
|---|---|---|
| committer | Dentomologist <dentomologist@gmail.com> | 2023-11-25 13:14:45 -0800 |
| commit | 715ba3cd0feefbb8b8ea5798e08b1c1ed59880a6 (patch) | |
| tree | 015d942d869f0008bc3bce85e2a50557b452c925 /Source/Core | |
| parent | 76d605639bfdeba30cddbc6483c4014979f43055 (diff) | |
NetPlaySetupDialog: Fix spacing in Connect tab
Add a spacer between the alert text and Connect button to prevent the
alert text from migrating down with larger window heights.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp b/Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp index 6e470c54a0..f99a493a77 100644 --- a/Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp +++ b/Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp @@ -110,19 +110,23 @@ void NetPlaySetupDialog::CreateMainLayout() connection_layout->addWidget(m_ip_edit, 0, 1); connection_layout->addWidget(m_connect_port_label, 0, 2); connection_layout->addWidget(m_connect_port_box, 0, 3); - connection_layout->addWidget( - new QLabel( - tr("ALERT:\n\n" - "All players must use the same Dolphin version.\n" - "If enabled, SD cards must be identical between players.\n" - "If DSP LLE is used, DSP ROMs must be identical between players.\n" - "If a game is hanging on boot, it may not support Dual Core Netplay." - " Disable Dual Core.\n" - "If connecting directly, the host must have the chosen UDP port open/forwarded!\n" - "\n" - "Wii Remote support in netplay is experimental and may not work correctly.\n" - "Use at your own risk.\n")), - 1, 0, -1, -1); + auto* const alert_label = new QLabel( + tr("ALERT:\n\n" + "All players must use the same Dolphin version.\n" + "If enabled, SD cards must be identical between players.\n" + "If DSP LLE is used, DSP ROMs must be identical between players.\n" + "If a game is hanging on boot, it may not support Dual Core Netplay." + " Disable Dual Core.\n" + "If connecting directly, the host must have the chosen UDP port open/forwarded!\n" + "\n" + "Wii Remote support in netplay is experimental and may not work correctly.\n" + "Use at your own risk.\n")); + + // Prevent the label from stretching vertically so the spacer gets all the extra space + alert_label->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed); + + connection_layout->addWidget(alert_label, 1, 0, 1, -1); + connection_layout->addItem(new QSpacerItem(1, 1), 2, 0, -1, -1); connection_layout->addWidget(m_connect_button, 3, 3, Qt::AlignRight); connection_widget->setLayout(connection_layout); |
