1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-20 19:57:45 +00:00

Add profile select widgets

This commit is contained in:
redstrate 2021-11-09 10:37:48 -05:00
parent 01881e5490
commit 0675461999
2 changed files with 15 additions and 2 deletions

View file

@ -10,6 +10,8 @@
#include <QMessageBox>
#include <QProcess>
#include <QComboBox>
#include <QGridLayout>
#include <QListWidget>
#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());

View file

@ -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");