Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

TxqClockLabel Class Reference

The TxqClockLabel will draw a clock face which will update every second. More...

#include <TxqClockLabel.h>

Inheritance diagram for TxqClockLabel::

QLabel List of all members.

Public Methods

 TxqClockLabel (QWidget *parent, const QString &s)
 Construct a TxqClockLabel. More...

void show ()
 Overload the QWidget::show method to start the timer. More...

void hide ()
 Overload the hide method to stop the timer. More...

QSize sizeHint () const
 Overload the sizeHint to give a minimum size. More...


Protected Methods

void timerEvent (QTimerEvent *)
 The timer event to update the clock. More...

void paintEvent (QPaintEvent *event)
 The paint Event paints the clock and label. More...


Detailed Description

The TxqClockLabel will draw a clock face which will update every second.

Hours, minutes, and a second hand is drawn, as well as a label.

Author:
Kelly G. Luetkemeyer

Definition at line 33 of file TxqClockLabel.h.


Constructor & Destructor Documentation

TxqClockLabel::TxqClockLabel ( QWidget * parent,
const QString & s )
 

Construct a TxqClockLabel.

Parameters:
parent   the parent widget
s   the label string


Member Function Documentation

void TxqClockLabel::hide ( )
 

Overload the hide method to stop the timer.

void TxqClockLabel::paintEvent ( QPaintEvent * event ) [protected]
 

The paint Event paints the clock and label.

void TxqClockLabel::show ( )
 

Overload the QWidget::show method to start the timer.

QSize TxqClockLabel::sizeHint ( ) const
 

Overload the sizeHint to give a minimum size.

void TxqClockLabel::timerEvent ( QTimerEvent * ) [protected]
 

The timer event to update the clock.


The documentation for this class was generated from the following file: Copyright Tech-X Corporation, all rights reserved.