From 06754619997172777aa5b1ffec7887084a059f3d Mon Sep 17 00:00:00 2001 From: redstrate Date: Tue, 9 Nov 2021 10:37:48 -0500 Subject: [PATCH] Add profile select widgets --- src/settingswindow.cpp | 13 +++++++++++-- src/xivlauncher.cpp | 4 ++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/settingswindow.cpp b/src/settingswindow.cpp index ba24423..d80c3a0 100644 --- a/src/settingswindow.cpp +++ b/src/settingswindow.cpp @@ -10,6 +10,8 @@ #include #include #include +#include +#include #include "xivlauncher.h" @@ -17,8 +19,15 @@ SettingsWindow::SettingsWindow(LauncherWindow& window, QWidget* parent) : window setWindowTitle("Settings"); setWindowModality(Qt::WindowModality::ApplicationModal); - auto layout = new QFormLayout(this); - setLayout(layout); + auto mainLayout = new QGridLayout(this); + setLayout(mainLayout); + + auto layout = new QFormLayout(); + mainLayout->addLayout(layout, 0, 1); + + auto profileWidget = new QListWidget(); + profileWidget->addItem("Default"); + mainLayout->addWidget(profileWidget, 0, 0); auto directXCombo = new QComboBox(); directXCombo->setCurrentIndex(window.settings.value("directx", 0).toInt()); diff --git a/src/xivlauncher.cpp b/src/xivlauncher.cpp index f343750..7ee9461 100755 --- a/src/xivlauncher.cpp +++ b/src/xivlauncher.cpp @@ -236,6 +236,10 @@ LauncherWindow::LauncherWindow(QWidget* parent) : auto layout = new QFormLayout(); + auto profileSelect = new QComboBox(); + profileSelect->addItem("Default"); + layout->addRow("Profile", profileSelect); + auto serverType = new QComboBox(); serverType->insertItem(0, "Square Enix"); serverType->insertItem(1, "Sapphire");