layout improvements

main
Síle Ekaterin Liszka 2021-05-23 10:40:56 -05:00
parent 5251a5f5a0
commit b550c8e181
2 changed files with 21 additions and 16 deletions

View File

@ -34,18 +34,20 @@ Exdeath::Exdeath(QWidget *parent) : QWidget(parent) {
error = new QErrorMessage(); error = new QErrorMessage();
filename = nullptr; filename = nullptr;
layContainer = new QVBoxLayout(this); layApp = new QVBoxLayout(this);
layColumns = new QVBoxLayout(this);
layApp->addLayout(layColumns);
layMain = new QGridLayout(this); layMain = new QGridLayout(this);
layMode = new QVBoxLayout(this); layMode = new QVBoxLayout(this);
layDemi = new QVBoxLayout(this); layInnates = new QVBoxLayout(this);
grpMain = new QGroupBox("Main"); grpMain = new QGroupBox("Main");
grpMain->setLayout(layMain); grpMain->setLayout(layMain);
grpDemi = new QGroupBox("Innate abilities"); grpInnates = new QGroupBox("Innate abilities");
grpDemi->setLayout(layDemi); grpInnates->setLayout(layInnates);
layContainer->addWidget(grpMain); layColumns->addWidget(grpMain);
layContainer->addWidget(grpDemi); layColumns->addWidget(grpInnates);
// Main options // Main options
txtROM = new QLabel("ROM:"); txtROM = new QLabel("ROM:");
@ -58,10 +60,10 @@ Exdeath::Exdeath(QWidget *parent) : QWidget(parent) {
btnROM = new QPushButton("Select ROM"); btnROM = new QPushButton("Select ROM");
btnApply = new QPushButton("Apply"); btnApply = new QPushButton("Apply");
layContainer->addWidget(btnApply); layApp->addWidget(btnApply);
radBase = new QRadioButton("Base"); radBase = new QRadioButton("Base");
radFiesta = new QRadioButton("Fiesta"); radFiesta = new QRadioButton("Jobs Unlocked");
radBalance = new QRadioButton("Balance"); radBalance = new QRadioButton("Balance");
radCClass = new QRadioButton("Custom Classes"); radCClass = new QRadioButton("Custom Classes");
radBase->setChecked(true); radBase->setChecked(true);
@ -98,11 +100,12 @@ Exdeath::Exdeath(QWidget *parent) : QWidget(parent) {
chkLiteStep = new QCheckBox("Innate Light Step"); chkLiteStep = new QCheckBox("Innate Light Step");
chkDash = new QCheckBox("Innate Dash"); chkDash = new QCheckBox("Innate Dash");
chkLearning = new QCheckBox("Innate Learning"); chkLearning = new QCheckBox("Innate Learning");
layDemi->addWidget(chkPassages); layInnates->addWidget(chkPassages);
layDemi->addWidget(chkPitfalls); layInnates->addWidget(chkPitfalls);
layDemi->addWidget(chkLiteStep); layInnates->addWidget(chkLiteStep);
layDemi->addWidget(chkDash); layInnates->addWidget(chkDash);
layDemi->addWidget(chkLearning); layInnates->addWidget(chkLearning);
connect(btnROM, &QPushButton::clicked, this, &Exdeath::btnROM_clicked); connect(btnROM, &QPushButton::clicked, this, &Exdeath::btnROM_clicked);
connect(btnApply, &QPushButton::clicked, this, &Exdeath::btnApply_clicked); connect(btnApply, &QPushButton::clicked, this, &Exdeath::btnApply_clicked);
} }

View File

@ -29,7 +29,9 @@ private:
QErrorMessage *error; QErrorMessage *error;
QVBoxLayout *layContainer; QVBoxLayout *layApp;
QVBoxLayout *layColumns;
QGridLayout *layMain; QGridLayout *layMain;
QVBoxLayout *layMode; QVBoxLayout *layMode;
QGroupBox *grpMain; QGroupBox *grpMain;
@ -55,8 +57,8 @@ private:
QComboBox *selNED; QComboBox *selNED;
QGroupBox *grpDemi; QGroupBox *grpInnates;
QVBoxLayout *layDemi; QVBoxLayout *layInnates;
QCheckBox *chkPassages; QCheckBox *chkPassages;
QCheckBox *chkPitfalls; QCheckBox *chkPitfalls;