[Kde-games-devel] Help about a new game
Vincent
vincent.touffi at gmail.com
Thu May 14 00:23:15 CEST 2009
Hello,
I have an issue with the sorting of the high-scores. The score is
well-sorted but for a same score, the time is not sorted correctly. I
read the api documentation and some source codes but I don't know how
to change that.
This is the code which manage the high-scores :
KScoreDialog::FieldInfo scoreInfo;
scoreInfo[KScoreDialog::Name] = name ;
scoreInfo[KScoreDialog::Score].setNum( itemNumber );
scoreInfo[KScoreDialog::Time] = time ;
if ( m_kScoreDialog->addScore( scoreInfo, KScoreDialog::LessIsMore ) )
m_kScoreDialog->exec();
Regards,
Vincent
More information about the kde-games-devel
mailing list