• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegames API Reference
  • KDE Home
  • Contact Us
 

libkdegames/highscore

  • KExtHighscore
  • RankItem
Public Member Functions | List of all members
KExtHighscore::RankItem Class Reference

#include <kexthighscore_internal.h>

Inheritance diagram for KExtHighscore::RankItem:
Inheritance graph
[legend]

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

KExtHighscore::RankItem::RankItem ( )
inline

Definition at line 52 of file kexthighscore_internal.h.

Member Function Documentation

QString KExtHighscore::RankItem::pretty ( uint  i,
const QVariant &  value 
) const
inlinevirtual
Returns
the string to be displayed. You may need to reimplement this method for special formatting (different from the standard ones).
Parameters
ithe element index ("rank" for score / "id" for player)
valuethe value to convert

Reimplemented from KExtHighscore::Item.

Definition at line 56 of file kexthighscore_internal.h.

QVariant KExtHighscore::RankItem::read ( uint  i,
const QVariant &  value 
) const
inlinevirtual
Returns
the converted value (by default the value is left unchanged). Most of the time you don't need to reimplement this method.
Parameters
ithe element index ("rank" for score / "id" for player)
valuethe 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:
  • kexthighscore_internal.h
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

KDE's Doxygen guidelines are available online.

libkdegames/highscore

Skip menu "libkdegames/highscore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegames API Reference

Skip menu "kdegames API Reference"
  • granatier
  • kapman
  • kblackbox
  • kgoldrunner
  • kigo
  • kmahjongg
  • KShisen
  • ksquares
  • libkdegames
  •   highscore
  •   libkdegamesprivate
  •     kgame
  • libkmahjongg
  • palapeli
  •   libpala

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal