[Kde-games-devel] Setting username when submiting score to KExtHighscores
Денис Купляков
dener.kup at gmail.com
Thu Sep 12 16:46:47 UTC 2013
> KScoreDialog::FieldInfo scoreInfo;
> scoreInfo[KScoreDialog::Name] = QString("name");
> scoreInfo[KScoreDialog::Score].setNum(score);
>
> // show the new dialog and add the new score to it
> KScoreDialog scoreDialog(KScoreDialog::Name, this);
> scoreDialog.initFromDifficulty(Kg::difficulty());
> bool madeIt = scoreDialog.addScore(scoreInfo);
KReversi doesn't use KScoreDialog. It uses KExtHighscore::Score and
KExtHighscore::submitScore() for highscores storing.
More information about the kde-games-devel
mailing list