From ecd43301b7ca4a8e3a2d6a8b24b58fc6e21f6d1f Mon Sep 17 00:00:00 2001 From: redstrate Date: Tue, 9 Nov 2021 13:38:48 -0500 Subject: [PATCH] Fix up settings window layout --- src/settingswindow.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/settingswindow.cpp b/src/settingswindow.cpp index e2b1659..1632e08 100644 --- a/src/settingswindow.cpp +++ b/src/settingswindow.cpp @@ -26,13 +26,13 @@ SettingsWindow::SettingsWindow(LauncherWindow& window, QWidget* parent) : window connect(profileWidget, &QListWidget::currentRowChanged, this, &SettingsWindow::reloadControls); - mainLayout->addWidget(profileWidget, 0, 0); + mainLayout->addWidget(profileWidget, 0, 0, 0, 1); auto addProfileButton = new QPushButton("Add Profile"); connect(addProfileButton, &QPushButton::pressed, [=] { profileWidget->setCurrentRow(this->window.addProfile()); }); - mainLayout->addWidget(addProfileButton, 1, 0); + mainLayout->addWidget(addProfileButton, 3, 0); nameEdit = new QLineEdit(); connect(nameEdit, &QLineEdit::editingFinished, [=] { @@ -41,13 +41,13 @@ SettingsWindow::SettingsWindow(LauncherWindow& window, QWidget* parent) : window reloadControls(); this->window.saveSettings(); }); - mainLayout->addWidget(nameEdit, 2, 0); + mainLayout->addWidget(nameEdit, 0, 1); auto gameBox = new QGroupBox("Game Options"); auto gameBoxLayout = new QFormLayout(); gameBox->setLayout(gameBoxLayout); - mainLayout->addWidget(gameBox, 0, 1); + mainLayout->addWidget(gameBox, 1, 1); directXCombo = new QComboBox(); directXCombo->addItem("DirectX 11"); @@ -84,7 +84,7 @@ SettingsWindow::SettingsWindow(LauncherWindow& window, QWidget* parent) : window auto loginBoxLayout = new QFormLayout(); loginBox->setLayout(loginBoxLayout); - mainLayout->addWidget(loginBox, 1, 1); + mainLayout->addWidget(loginBox, 2, 1); serverType = new QComboBox(); serverType->insertItem(0, "Square Enix"); @@ -129,7 +129,7 @@ SettingsWindow::SettingsWindow(LauncherWindow& window, QWidget* parent) : window auto wineBoxLayout = new QFormLayout(); wineBox->setLayout(wineBoxLayout); - mainLayout->addWidget(wineBox, 0, 2); + mainLayout->addWidget(wineBox, 1, 2, 2, 2); auto infoLabel = new QLabel("This is a list of possible enhancements you can make to your Wine gaming experience.\n" "This is all stuff you can do outside of the launcher, but we can take care of it for you.");