[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdegames/kmines
From:       Matt Williams <matt () milliams ! com>
Date:       2007-10-30 17:11:09
Message-ID: 1193764269.491636.5453.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 731080 by milliams:

Fix KScoreDialog usage to use the built-in "Time" field. Highscores are now displayed correctly.

 M  +2 -3      mainwindow.cpp  


--- trunk/KDE/kdegames/kmines/mainwindow.cpp #731079:731080
@@ -72,8 +72,7 @@
     setCentralWidget(m_view);
     setupActions();
 
-    m_scoreDialog = new KScoreDialog(KScoreDialog::Name | KScoreDialog::Custom1, this);
-    m_scoreDialog->addField(KScoreDialog::Custom1, "Time", "time");
+    m_scoreDialog = new KScoreDialog(KScoreDialog::Name | KScoreDialog::Time, this);
     m_scoreDialog->hideField(KScoreDialog::Score);
 
     // TODO: load this from config
@@ -157,7 +156,7 @@
         // score-in-seconds will be hidden
         scoreInfo[KScoreDialog::Score].setNum(m_gameClock->seconds());
         //score-as-time will be shown
-        scoreInfo[KScoreDialog::Custom1] = m_gameClock->timeString();
+        scoreInfo[KScoreDialog::Time] = m_gameClock->timeString();
 
         // we keep highscores as number of seconds
         if( m_scoreDialog->addScore(scoreInfo, KScoreDialog::LessIsMore) != 0 )
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic