File indexing completed on 2024-05-19 05:51:02
0001 /* Atelier KDE Printer Host for 3D Printing 0002 Copyright (C) <2016> 0003 Author: Lays Rodrigues - lays.rodrigues@kde.org 0004 Chris Rizzitello - rizzitello@kde.org 0005 0006 This program is free software: you can redistribute it and/or modify 0007 it under the terms of the GNU General Public License as published by 0008 the Free Software Foundation, either version 3 of the License, or 0009 (at your option) any later version. 0010 0011 This program is distributed in the hope that it will be useful, 0012 but WITHOUT ANY WARRANTY; without even the implied warranty of 0013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0014 GNU General Public License for more details. 0015 0016 You should have received a copy of the GNU General Public License 0017 along with this program. If not, see <http://www.gnu.org/licenses/>. 0018 */ 0019 0020 #include <KLocalizedString> 0021 #include <ProfileManager> 0022 #include <QDialogButtonBox> 0023 #include <QVBoxLayout> 0024 0025 #include "profilesdialog.h" 0026 0027 ProfilesDialog::ProfilesDialog(QWidget *parent) 0028 : QDialog(parent) 0029 { 0030 setWindowTitle(i18n("Profiles")); 0031 ProfileManager *pm = new ProfileManager(this); 0032 QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok, this); 0033 connect(buttonBox, &QDialogButtonBox::accepted, this, &QDialog::close); 0034 QLayout *mainLayout = new QVBoxLayout; 0035 mainLayout->addWidget(pm); 0036 mainLayout->addWidget(buttonBox); 0037 setLayout(mainLayout); 0038 }