libkdegames/highscore
KExtHighscore::RankItem Class Reference
#include <kexthighscore_internal.h>
Inheritance diagram for KExtHighscore::RankItem:
Public Member Functions | |
RankItem () | |
QString | pretty (uint i, const QVariant &value) const |
QVariant | read (uint i, const QVariant &value) const |
Public Member Functions inherited from KExtHighscore::Item | |
Item (const QVariant &def=QVariant::Invalid, const QString &label=QString(), Qt::AlignmentFlag alignment=Qt::AlignRight) | |
virtual | ~Item () |
int | alignment () const |
QVariant | defaultValue () const |
bool | isVisible () const |
QString | label () const |
void | setDefaultValue (const QVariant &value) |
void | setLabel (const QString &label) |
void | setPrettyFormat (Format format) |
void | setPrettySpecial (Special special) |
Additional Inherited Members | |
Public Types inherited from KExtHighscore::Item | |
enum | Format { NoFormat, OneDecimal, Percentage, MinuteTime, DateTime } |
enum | Special { NoSpecial, ZeroNotDefined, NegativeNotDefined, DefaultNotDefined, Anonymous } |
Detailed Description
Definition at line 49 of file kexthighscore_internal.h.
Constructor & Destructor Documentation
|
inline |
Definition at line 52 of file kexthighscore_internal.h.
Member Function Documentation
- Returns
- the string to be displayed. You may need to reimplement this method for special formatting (different from the standard ones).
- Parameters
-
i the element index ("rank" for score / "id" for player) value the value to convert
Reimplemented from KExtHighscore::Item.
Definition at line 56 of file kexthighscore_internal.h.
- Returns
- the converted value (by default the value is left unchanged). Most of the time you don't need to reimplement this method.
- Parameters
-
i the element index ("rank" for score / "id" for player) value the value to convert
Reimplemented from KExtHighscore::Item.
Definition at line 55 of file kexthighscore_internal.h.
The documentation for this class was generated from the following file:
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.