PathPane::PathPane(QWidget* parent) : QWidget(parent) { setWindowTitle(tr("Paths")); QVBoxLayout* layout = new QVBoxLayout; layout->addWidget(MakeGameFolderBox()); layout->addLayout(MakePathsLayout()); setLayout(layout); }
PathDialog::PathDialog(QWidget* parent) : QDialog(parent) { setWindowTitle(tr("Paths")); QVBoxLayout* layout = new QVBoxLayout; layout->addWidget(MakeGameFolderBox()); layout->addLayout(MakePathsLayout()); QDialogButtonBox* ok_box = new QDialogButtonBox(QDialogButtonBox::Ok); connect(ok_box, &QDialogButtonBox::accepted, this, &PathDialog::accept); layout->addWidget(ok_box); setLayout(layout); }