libkdegames/highscore
kexthighscore_item.cpp
Go to the documentation of this file.
281 KPageWidgetItem *page = new KPageWidgetItem( new QLabel(QLatin1String( "" )), QLatin1String( "" ) );
This class is used to store and show scores for multiplayer games.
Definition: kexthighscore_item.h:271
void setName(uint player, const QString &name)
Set the name of player.
Definition: kexthighscore_item.cpp:226
void setPlayerCount(uint nb)
Set the number of players and clear the scores.
Definition: kexthighscore_item.cpp:219
~MultiplayerScores()
Definition: kexthighscore_item.cpp:203
void setData(const QString &name, const QVariant &value)
Set the data associated with the named Item.
Definition: kexthighscore_item.cpp:165
static const char ANONYMOUS_LABEL[]
Definition: kexthighscore_internal.h:109
virtual QVariant read(uint i, const QVariant &value) const
Definition: kexthighscore_item.cpp:48
Definition: kexthighscore_item.h:168
void addScore(uint player, const Score &score)
Add the score of player.
Definition: kexthighscore_item.cpp:231
static const char ANONYMOUS[]
Definition: kexthighscore_internal.h:108
MultiplayerScores()
Definition: kexthighscore_item.cpp:200
Item(const QVariant &def=QVariant::Invalid, const QString &label=QString(), Qt::AlignmentFlag alignment=Qt::AlignRight)
Constructor.
Definition: kexthighscore_item.cpp:40
QDataStream & operator<<(QDataStream &s, const Score &score)
Definition: kexthighscore_item.cpp:183
QDataStream & operator>>(QDataStream &s, Score &score)
Definition: kexthighscore_item.cpp:190
virtual QString pretty(uint i, const QVariant &value) const
Definition: kexthighscore_item.cpp:110
void setPrettySpecial(Special special)
Set the special value for display.
Definition: kexthighscore_item.cpp:77
const ItemContainer * item(const QString &name) const
Definition: kexthighscore_internal.cpp:125
QVariant data(const QString &name) const
Definition: kexthighscore_item.cpp:159
Manage a bunch of Item which are saved under the same group in KHighscores config file...
Definition: kexthighscore_internal.h:132
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:44:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:44:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.