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:
parent
01881e5490
commit
0675461999
2 changed files with 15 additions and 2 deletions
|
@ -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());
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue