KGameLCDList Class Reference

This widget holds a list of QLCDNumber arranged in a vertical layout. More...

#include <kgamelcd.h>

Collaboration diagram for KGameLCDList:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 KGameLCDList (const QString &title, QWidget *parent=0)
 Constructor.
 KGameLCDList (QWidget *parent=0)
 Constructor.
 ~KGameLCDList ()
void append (QLCDNumber *lcd)
 Append a QLCDNumber at the bottom of the list.
void append (const QString &leading, QLCDNumber *lcd)
 Append a QLCDNumber at the bottom of the list.
void clear ()
 Delete all QLCDNumber and clear the list.
QLabel * title () const
 
Returns:
the title label.

QLCDNumber * lcd (uint i) const
 
Returns:
the QLCDNumber at index

uint size () const
 
Returns:
the number of QLCDNumber in the list.


Classes

class  KGameLCDListPrivate


Detailed Description

This widget holds a list of QLCDNumber arranged in a vertical layout.

It also shows a label at the top of the list.

Definition at line 184 of file kgamelcd.h.


Constructor & Destructor Documentation

KGameLCDList::KGameLCDList ( const QString &  title,
QWidget *  parent = 0 
) [explicit]

Constructor.

Parameters:
title is the content of the top label.
parent passed to the QWidget constructor.

Definition at line 195 of file kgamelcd.cpp.

KGameLCDList::KGameLCDList ( QWidget *  parent = 0  ) 

Constructor.

Create a KGameLCDList with an empty top label.

Parameters:
parent passed to the QWidget constructor.

Definition at line 201 of file kgamelcd.cpp.

KGameLCDList::~KGameLCDList (  ) 

Definition at line 207 of file kgamelcd.cpp.


Member Function Documentation

void KGameLCDList::append ( QLCDNumber *  lcd  ) 

Append a QLCDNumber at the bottom of the list.

The QLCDNumber should have the KGameLCDList as parent.

Definition at line 225 of file kgamelcd.cpp.

void KGameLCDList::append ( const QString &  leading,
QLCDNumber *  lcd 
)

Append a QLCDNumber at the bottom of the list.

The QLCDNumber should have the KGameLCDList as parent.

Definition at line 230 of file kgamelcd.cpp.

References KGameLCDList::KGameLCDListPrivate::_leadings, and size().

Here is the call graph for this function:

void KGameLCDList::clear (  ) 

Delete all QLCDNumber and clear the list.

Definition at line 243 of file kgamelcd.cpp.

References KGameLCDList::KGameLCDListPrivate::_leadings.

QLabel* KGameLCDList::title (  )  const [inline]

Returns:
the title label.

Definition at line 225 of file kgamelcd.h.

QLCDNumber* KGameLCDList::lcd ( uint  i  )  const [inline]

Returns:
the QLCDNumber at index

Parameters:
i 

Definition at line 230 of file kgamelcd.h.

uint KGameLCDList::size (  )  const [inline]

Returns:
the number of QLCDNumber in the list.

Definition at line 235 of file kgamelcd.h.

Referenced by append().


The documentation for this class was generated from the following files:
Generated on Sun Mar 16 08:03:19 2008 for Libkdegames by  doxygen 1.5.3