diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-06-09 00:50:59 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-06-09 00:50:59 +0000 |
| commit | 60a2ed8ee8aa994c83d382af2ec477e171beb950 (patch) | |
| tree | 6fea6867adee00f22b9d775a6dce15ed875d75e6 /pokemodr/PokeModrPreferences.cpp | |
| parent | 0737b455ca94351c574aa1a8c83ea30c5b7bc443 (diff) | |
[FIX] All modules now use their own namespace
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@201 6ecfd1a5-f3ed-3746-8530-beee90d26b22
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()); -} |
