#include <kexthighscore_item.h>
Inheritance diagram for KExtHighscore::Item:

Public Types | |
| enum | Format { NoFormat, OneDecimal, Percentage, MinuteTime, DateTime } |
| Possible display format. More... | |
| enum | Special { NoSpecial, ZeroNotDefined, NegativeNotDefined, DefaultNotDefined, Anonymous } |
| Possible special value for display format. More... | |
Public Member Functions | |
| Item (const QVariant &def=QVariant::Invalid, const QString &label=QString::null, int alignment=Qt::AlignRight) | |
| Constructor. | |
| virtual | ~Item () |
| void | setPrettyFormat (Format format) |
| Set the display format. | |
| void | setPrettySpecial (Special special) |
| Set the special value for display. | |
| bool | isVisible () const |
| void | setLabel (const QString &label) |
| Set the label. | |
| QString | label () const |
| int | alignment () const |
| void | setDefaultValue (const QVariant &value) |
| Set default value. | |
| const QVariant & | defaultValue () const |
| virtual QVariant | read (uint i, const QVariant &value) const |
| virtual QString | pretty (uint i, const QVariant &value) const |
..) or a player info (such as the player name, the best score, ...).
Definition at line 40 of file kexthighscore_item.h.
|
|
Possible display format.
Definition at line 55 of file kexthighscore_item.h. |
|
|
Possible special value for display format.
Definition at line 72 of file kexthighscore_item.h. |
|
||||||||||||||||
|
Constructor.
Definition at line 36 of file kexthighscore_item.cpp. |
|
|
Definition at line 41 of file kexthighscore_item.cpp. |
|
|
Definition at line 119 of file kexthighscore_item.h. |
|
|
Definition at line 129 of file kexthighscore_item.h. Referenced by KExtHighscore::ItemContainer::read(), and KExtHighscore::Manager::setPlayerItem(). |
|
|
Definition at line 104 of file kexthighscore_item.h. |
|
|
Definition at line 114 of file kexthighscore_item.h. |
|
||||||||||||
|
Reimplemented in KExtHighscore::ScoreNameItem, and KExtHighscore::RankItem. Definition at line 106 of file kexthighscore_item.cpp. References KExtHighscore::ItemContainer::ANONYMOUS, Anonymous, KExtHighscore::ItemContainer::ANONYMOUS_LABEL, DateTime, DefaultNotDefined, MinuteTime, NegativeNotDefined, NoFormat, NoSpecial, OneDecimal, Percentage, and ZeroNotDefined. Referenced by KExtHighscore::HistogramTab::HistogramTab(), KExtHighscore::ScoreNameItem::pretty(), and KExtHighscore::ItemContainer::pretty(). |
|
||||||||||||
|
Reimplemented in KExtHighscore::RankItem. Definition at line 44 of file kexthighscore_item.cpp. Referenced by KExtHighscore::ItemContainer::read(). |
|
|
Set default value.
Definition at line 124 of file kexthighscore_item.h. Referenced by KExtHighscore::Manager::setPlayerItem(), and KExtHighscore::Manager::setScoreItem(). |
|
|
Set the label.
Definition at line 109 of file kexthighscore_item.h. |
|
|
Set the display format.
Definition at line 49 of file kexthighscore_item.cpp. References DateTime, MinuteTime, NoFormat, OneDecimal, and Percentage. Referenced by KExtHighscore::Manager::createItem(), KExtHighscore::DateItem::DateItem(), KExtHighscore::Manager::setScoreType(), and KExtHighscore::SuccessPercentageItem::SuccessPercentageItem(). |
|
|
Set the special value for display.
Definition at line 73 of file kexthighscore_item.cpp. References Anonymous, DefaultNotDefined, NegativeNotDefined, NoSpecial, and ZeroNotDefined. Referenced by KExtHighscore::Manager::createItem(), KExtHighscore::NameItem::NameItem(), and KExtHighscore::SuccessPercentageItem::SuccessPercentageItem(). |
1.4.6