File indexing completed on 2022-09-27 13:19:30

0001 /*
0002     SPDX-FileCopyrightText: 2006 Matthew Williams <matt@milliams.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #include "scoresdialog.h"
0008 #include <QDialogButtonBox>
0009 #include <QPushButton>
0010 
0011 ScoresDialog::ScoresDialog(QWidget *parent)
0012     : QDialog(parent)
0013 {
0014   auto topLayout = new QVBoxLayout;
0015   setLayout(topLayout);
0016 
0017   auto w = new QWidget;
0018   topLayout->addWidget(w);
0019 
0020   auto mainLayout = new QVBoxLayout;
0021   w->setLayout(mainLayout);
0022   auto mainWidget = new QWidget;
0023   setupUi(mainWidget);
0024   mainLayout->addWidget(mainWidget);
0025 
0026   auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Close);
0027   connect(buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
0028   connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
0029   mainLayout->addWidget(buttonBox);
0030 
0031 }
0032