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
bool contains(const Key &key) const
iterator begin()
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
QDateTime toDateTime() const
~MultiplayerScores()
Definition: kexthighscore_item.cpp:203
void insert(int i, const T &value)
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
T * data()
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
QString number(int n, int base)
uint toUInt(bool *ok) const
void resize(int size)
int toInt(bool *ok) const
QString rightJustified(int width, QChar fill, bool truncate) const
static const char ANONYMOUS[]
Definition: kexthighscore_internal.h:108
MultiplayerScores()
Definition: kexthighscore_item.cpp:200
void setMargin(int margin)
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
bool isNull() const
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 push_back(const T &value)
double toDouble(bool *ok) const
Type type() const
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
int size() const
QString toString() const
iterator end()
QVariant data(const QString &name) const
Definition: kexthighscore_item.cpp:159
void setSpacing(int spacing)
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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:46 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:46 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.