KExtHighscore::Item Class Reference
This class defines how to convert and how to display a highscore element (such as the score, the date, ...) or a player info (such as the player name, the best score, ...). More...
#include <kexthighscore_item.h>
Public Types | |
enum | Format { NoFormat, OneDecimal, Percentage, MinuteTime, DateTime } |
enum | Special { NoSpecial, ZeroNotDefined, NegativeNotDefined, DefaultNotDefined, Anonymous } |
Public Member Functions | |
Item (const QVariant &def=QVariant::Invalid, const QString &label=QString::null, int alignment=Qt::AlignRight) | |
void | setPrettyFormat (Format format) |
void | setPrettySpecial (Special special) |
bool | isVisible () const |
void | setLabel (const QString &label) |
QString | label () const |
int | alignment () const |
void | setDefaultValue (const QVariant &value) |
const QVariant & | defaultValue () const |
virtual QVariant | read (uint i, const QVariant &value) const |
virtual QString | pretty (uint i, const QVariant &value) const |
Detailed Description
This class defines how to convert and how to display a highscore element (such as the score, the date, ...) or a player info (such as the player name, the best score, ...).Definition at line 40 of file kexthighscore_item.h.
Member Enumeration Documentation
|
Possible display format.
|
|
Possible special value for display format.
|
Constructor & Destructor Documentation
|
Constructor.
|
Member Function Documentation
|
Set the display format.
Referenced by KExtHighscore::Manager::createItem(), and KExtHighscore::Manager::setScoreType(). |
|
Set the special value for display.
Referenced by KExtHighscore::Manager::createItem(). |
|
|
|
Set the label. Definition at line 109 of file kexthighscore_item.h. |
|
|
|
|
|
Set default value. Definition at line 124 of file kexthighscore_item.h. Referenced by KExtHighscore::Manager::setPlayerItem(), and KExtHighscore::Manager::setScoreItem(). |
|
Referenced by KExtHighscore::Manager::setPlayerItem(). |
|
|
|
|
The documentation for this class was generated from the following files: