File indexing completed on 2024-04-28 04:42:10

0001 /* This file is part of the KDE project
0002  * Copyright (C) 2001-2007 by OpenMFG, LLC (info@openmfg.com)
0003  * Copyright (C) 2007-2008 by Adam Pigg (adam@piggz.co.uk)
0004  *
0005  * This library is free software; you can redistribute it and/or
0006  * modify it under the terms of the GNU Lesser General Public
0007  * License as published by the Free Software Foundation; either
0008  * version 2.1 of the License, or (at your option) any later version.
0009  *
0010  * This library is distributed in the hope that it will be useful,
0011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
0013  * Lesser General Public License for more details.
0014  *
0015  * You should have received a copy of the GNU Lesser General Public
0016  * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
0017  */
0018 
0019 #include "KReportDetailGroupSectionDialog.h"
0020 
0021 /*
0022  *  Constructs a DetailGroupSectionDialog as a child of 'parent'.
0023  *
0024  *  The dialog will by default be modeless, unless you set 'modal' to
0025  *  true to construct a modal dialog.
0026  */
0027 KReportDetailGroupSectionDialog::KReportDetailGroupSectionDialog(QWidget* parent)
0028   : QDialog(parent)
0029 {
0030     setupUi(this);
0031 
0032     connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
0033     connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
0034 
0035     setWindowTitle(tr("Group Section Editor"));
0036 }
0037 
0038 /*
0039  *  Destroys the object and frees any allocated resources
0040  */
0041 KReportDetailGroupSectionDialog::~KReportDetailGroupSectionDialog()
0042 {
0043     // no need to delete child widgets, Qt does it all for us
0044 }