Diffstat (limited to 'noncore/games/kpacman/kpacman.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/kpacman/kpacman.cpp | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/noncore/games/kpacman/kpacman.cpp b/noncore/games/kpacman/kpacman.cpp index aee8eea..812e9ea 100644 --- a/noncore/games/kpacman/kpacman.cpp +++ b/noncore/games/kpacman/kpacman.cpp @@ -8,5 +8,5 @@ #elif defined( QPE_PORT ) #include <qmenubar.h> -#include "config.h" +#include <qpe/config.h> #include <qapplication.h> #include "kpacman.h" @@ -71,9 +71,10 @@ Kpacman::Kpacman(QWidget *parent, const char *name) Kpacman::~Kpacman() { - APP_CONFIG_BEGIN( cfg ); + /* APP_CONFIG_BEGIN( cfg ); cfg->writeEntry("FocusOutPause", focusOutPause); cfg->writeEntry("FocusInContinue", focusInContinue); cfg->writeEntry("HideMouseCursor", hideMouseCursor); APP_CONFIG_END( cfg ); + */ delete _menuBar; } @@ -144,9 +145,10 @@ int Kpacman::lookupSchemes() { APP_CONFIG_BEGIN( cfg ); - int ModeCount = cfg->readNumEntry("ModeCount", -1); - int Mode = cfg->readNumEntry("Mode", -1); - int SchemeCount = cfg->readNumEntry("SchemeCount"); - int Scheme = cfg->readNumEntry("Scheme", -1); + int ModeCount = cfg->readNumEntry("ModeCount", 0); + int Mode = cfg->readNumEntry("Mode", 0); + int SchemeCount = cfg->readNumEntry("SchemeCount", 0); + int Scheme = cfg->readNumEntry("Scheme", 0); + /* if (SchemeCount == 0 || Scheme == -1) { QMessageBox::warning(this, tr("Configuration Error"), @@ -156,4 +158,5 @@ int Kpacman::lookupSchemes() return 0; } + */ connect(modesPopup, SIGNAL(activated(int)), this, SLOT(schemeChecked(int))); @@ -350,9 +353,10 @@ void Kpacman::schemeChecked(int id) } } - + /* APP_CONFIG_BEGIN( cfg ); cfg->writeEntry("Scheme", scheme); cfg->writeEntry("Mode", mode); APP_CONFIG_END( cfg ); + */ view->setScheme(scheme, mode); |