diff options
Diffstat (limited to 'pokemodr/PokeModrPreferences.cpp')
| -rw-r--r-- | pokemodr/PokeModrPreferences.cpp | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/pokemodr/PokeModrPreferences.cpp b/pokemodr/PokeModrPreferences.cpp deleted file mode 100644 index ca720077..00000000 --- a/pokemodr/PokeModrPreferences.cpp +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2008 Ben Boeckel <MathStuf@gmail.com> - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -// Header include -#include "PokeModrPreferences.h" - -// Qt includes -#include <QCheckBox> - -// KDE includes -#include <KConfigGroup> - -PokeModrPreferences::PokeModrPreferences(QWidget* parent, KConfigGroup& config) : - KDialog(parent), - m_config(config) -{ - setCaption(QString::fromUtf8("PokéModr Preferences")); - setButtons(KDialog::Ok | KDialog::Cancel); - varReloadOnOpen = new QCheckBox("Reload files on open"); - varReloadOnOpen->setChecked(m_config.readEntry("reloadOnStart", false) ? Qt::Checked : Qt::Unchecked); - setMainWidget(varReloadOnOpen); -} - -void PokeModrPreferences::save() -{ - m_config.writeEntry("reloadOnStart", varReloadOnOpen->isChecked()); -} |
