libkdegames Library API Documentation

KGameLCDList Class Reference

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

#include <kgamelcd.h>

Inheritance diagram for KGameLCDList:

QWidget List of all members.

Public Methods

 KGameLCDList (const QString &title, QWidget *parent=0, const char *name=0)
 KGameLCDList (QWidget *parent=0, const char *name=0)
 ~KGameLCDList ()
void append (QLCDNumber *lcd)
void clear ()
QLabeltitle () const
QLCDNumberlcd (uint i) const
uint size () const

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.

Since:
3.2

Definition at line 190 of file kgamelcd.h.


Constructor & Destructor Documentation

KGameLCDList::KGameLCDList const QString   title,
QWidget   parent = 0,
const char *    name = 0
 

Constructor.

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

Definition at line 188 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 213 of file kgamelcd.cpp.

References QWidget::layout(), and QValueVector< QLCDNumber * >::push_back().

void KGameLCDList::clear  
 

Delete all QLCDNumber and clear the list.

Definition at line 219 of file kgamelcd.cpp.

References QValueVector< QLCDNumber * >::clear(), and QValueVector< QLCDNumber * >::size().

QLabel* KGameLCDList::title   const [inline]
 

Returns:
the title label.

Definition at line 221 of file kgamelcd.h.

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

Returns:
the QLCDNumber at index
Parameters:
i 

Definition at line 226 of file kgamelcd.h.

uint KGameLCDList::size   const [inline]
 

Returns:
the number of QLCDNumber in the list.

Reimplemented from QWidget.

Definition at line 231 of file kgamelcd.h.

References QValueVector< QLCDNumber * >::size().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for libkdegames Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 10:06:39 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003