File indexing completed on 2025-02-16 06:57:48
0001 /* 0002 Copyright (C) 2002-2005, Jason Katz-Brown <jasonkb@mit.edu> 0003 Copyright 2010 Stefan Majewsky <majewsky@gmx.net> 0004 0005 This program is free software; you can redistribute it and/or modify 0006 it under the terms of the GNU General Public License as published by 0007 the Free Software Foundation; either version 2 of the License, or 0008 (at your option) any later version. 0009 0010 This program 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 0013 GNU General Public License for more details. 0014 0015 You should have received a copy of the GNU General Public License 0016 along with this program; if not, write to the Free Software 0017 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 0018 */ 0019 0020 #include "config.h" // krazy:exclude=includes 0021 0022 #include <QLabel> 0023 #include <QVBoxLayout> 0024 #include <KLocalizedString> 0025 0026 Config::Config(QWidget *parent) 0027 : QFrame(parent) 0028 { 0029 startedUp = false; 0030 } 0031 0032 void Config::ctorDone() 0033 { 0034 startedUp = true; 0035 } 0036 0037 void Config::changed() 0038 { 0039 if (startedUp) 0040 Q_EMIT modified(true); 0041 } 0042 0043 MessageConfig::MessageConfig(const QString &text, QWidget *parent) 0044 : Config(parent) 0045 { 0046 QVBoxLayout *layout = new QVBoxLayout(this); 0047 layout->addWidget(new QLabel(text, this)); 0048 } 0049 0050 DefaultConfig::DefaultConfig(QWidget *parent) 0051 : MessageConfig(i18n("No configuration options"), parent) 0052 { 0053 } 0054 0055 #include "moc_config.cpp"