summaryrefslogtreecommitdiffstats
path: root/kpat/dealer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpat/dealer.cpp')
-rw-r--r--kpat/dealer.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kpat/dealer.cpp b/kpat/dealer.cpp
index dbd27787..42d895c0 100644
--- a/kpat/dealer.cpp
+++ b/kpat/dealer.cpp
@@ -1157,9 +1157,9 @@ void Dealer::won()
_won = true;
// update score, 'win' in demo mode also counts (keep it that way?)
- { // wrap in own scope to make KConfigGroupSave work
- KConfig *config = kapp->config();
- KConfigGroupSaver kcs(config, scores_group);
+ { // wrap in own scope to make TDEConfigGroupSave work
+ TDEConfig *config = kapp->config();
+ TDEConfigGroupSaver kcs(config, scores_group);
unsigned int n = config->readUnsignedNumEntry(TQString("won%1").arg(_id),0) + 1;
config->writeEntry(TQString("won%1").arg(_id),n);
n = config->readUnsignedNumEntry(TQString("winstreak%1").arg(_id),0) + 1;
@@ -1428,8 +1428,8 @@ void Dealer::countGame()
{
if ( !_gameRecorded ) {
kdDebug(11111) << "counting game as played." << endl;
- KConfig *config = kapp->config();
- KConfigGroupSaver kcs(config, scores_group);
+ TDEConfig *config = kapp->config();
+ TDEConfigGroupSaver kcs(config, scores_group);
unsigned int Total = config->readUnsignedNumEntry(TQString("total%1").arg(_id),0);
++Total;
config->writeEntry(TQString("total%1").arg(_id),Total);
@@ -1441,8 +1441,8 @@ void Dealer::countLoss()
{
if ( _gameRecorded ) {
// update score
- KConfig *config = kapp->config();
- KConfigGroupSaver kcs(config, scores_group);
+ TDEConfig *config = kapp->config();
+ TDEConfigGroupSaver kcs(config, scores_group);
unsigned int n = config->readUnsignedNumEntry(TQString("loosestreak%1").arg(_id),0) + 1;
config->writeEntry(TQString("loosestreak%1").arg(_id),n);
unsigned int m = config->readUnsignedNumEntry(TQString("maxloosestreak%1").arg(_id),0);