KGameLCDClock Class Reference
#include <kgamelcd.h>
Inheritance diagram for KGameLCDClock:

Public Slots | |
virtual void | reset () |
virtual void | stop () |
virtual void | start () |
![]() | |
void | highlight () |
void | displayInt (int value) |
Public Member Functions | |
KGameLCDClock (TQWidget *parent=0, const char *name=0) | |
uint | seconds () const |
TQString | pretty () const |
void | setTime (uint seconds) |
void | setTime (const TQString &s) |
![]() | |
KGameLCD (uint nbDigits, TQWidget *parent=0, const char *name=0) | |
void | setDefaultBackgroundColor (const TQColor &color) |
void | setDefaultColor (const TQColor &color) |
void | setHighlightColor (const TQColor &color) |
void | setLeadingString (const TQString &s) |
void | setHighlightTime (uint time) |
void | resetColor () |
void | setColor (const TQColor &color) |
Protected Slots | |
virtual void | timeoutClock () |
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 127 of file kgamelcd.h.
Member Function Documentation
◆ pretty()
TQString KGameLCDClock::pretty | ( | ) | const |
- Returns
- the time as a string to be displayed: "mm:ss".
Definition at line 135 of file kgamelcd.cpp.
◆ reset
|
virtualslot |
Stop the clock and reset it to zero.
Definition at line 147 of file kgamelcd.cpp.
◆ seconds()
uint KGameLCDClock::seconds | ( | ) | const |
- Returns
- the total number of seconds elapsed.
Definition at line 165 of file kgamelcd.cpp.
◆ setTime() [1/2]
void KGameLCDClock::setTime | ( | uint | seconds | ) |
Set the time.
Definition at line 170 of file kgamelcd.cpp.
◆ setTime() [2/2]
void KGameLCDClock::setTime | ( | const TQString & | s | ) |
Set the time (format should be "mm:ss").
Definition at line 178 of file kgamelcd.cpp.
◆ start
|
virtualslot |
Start the clock from the current time.
Definition at line 155 of file kgamelcd.cpp.
◆ stop
|
virtualslot |
Stop the clock but do not reset it to zero.
Definition at line 160 of file kgamelcd.cpp.
The documentation for this class was generated from the following files: