KGameLCDClock Class Reference

#include <kgamelcd.h>

Inheritance diagram for KGameLCDClock:

KGameLCD List of all members.

Detailed Description

This class is a digital clock widget.

It has a maximum duration of 3599 seconds (one hour) and it gets updated every second.

Since:
3.2

Definition at line 126 of file kgamelcd.h.


Public Slots

virtual void reset ()
virtual void stop ()
virtual void start ()

Public Member Functions

 KGameLCDClock (QWidget *parent=0, const char *name=0)
 ~KGameLCDClock ()
uint seconds () const
QString pretty () const
void setTime (uint seconds)
void setTime (const QString &s)

Protected Slots

virtual void timeoutClock ()

Member Function Documentation

uint KGameLCDClock::seconds (  )  const

Returns:
the total number of seconds elapsed.

Definition at line 165 of file kgamelcd.cpp.

QString KGameLCDClock::pretty (  )  const

Returns:
the time as a string to be displayed: "mm:ss".

Definition at line 135 of file kgamelcd.cpp.

void KGameLCDClock::setTime ( uint  seconds  ) 

Set the time.

Definition at line 170 of file kgamelcd.cpp.

void KGameLCDClock::setTime ( const QString &  s  ) 

Set the time (format should be "mm:ss").

Definition at line 178 of file kgamelcd.cpp.

void KGameLCDClock::reset (  )  [virtual, slot]

Stop the clock and reset it to zero.

Definition at line 147 of file kgamelcd.cpp.

void KGameLCDClock::stop (  )  [virtual, slot]

Stop the clock but do not reset it to zero.

Definition at line 160 of file kgamelcd.cpp.

void KGameLCDClock::start (  )  [virtual, slot]

Start the clock from the current time.

Definition at line 155 of file kgamelcd.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys