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

TxqListBoxText Class Reference

The TxqListBoxText is a QListBoxText which can display text in a bold font if desired. More...

#include <TxqListBoxText.h>

Inheritance diagram for TxqListBoxText::

QListBoxText List of all members.

Public Methods

 TxqListBoxText (const QString &text=QString::null, bool bold=false)
 Constructs a TxqListBoxText with the given text. More...

 ~TxqListBoxText ()
 The destructor will destroy the object and free any allocated resources. More...

bool boldSelected ()
 Return if this is a bold item. More...

void setBoldSelect (bool b)
 Set true if this is to be painted bold. More...


Protected Methods

virtual void paint (QPainter *p)
 Paint method overloaded to set the text bold if selected. More...


Private Attributes

bool boldFlag
 The internal bold flag. More...


Detailed Description

The TxqListBoxText is a QListBoxText which can display text in a bold font if desired.

Definition at line 31 of file TxqListBoxText.h.


Constructor & Destructor Documentation

TxqListBoxText::TxqListBoxText ( const QString & text = QString::null,
bool bold = false ) [inline]
 

Constructs a TxqListBoxText with the given text.

Parameters:
text   the text string for the item.
bold   a bool which when true will set the text to bold font when painted.

Definition at line 41 of file TxqListBoxText.h.

TxqListBoxText::~TxqListBoxText ( ) [inline]
 

The destructor will destroy the object and free any allocated resources.

Definition at line 49 of file TxqListBoxText.h.


Member Function Documentation

bool TxqListBoxText::boldSelected ( ) [inline]
 

Return if this is a bold item.

Returns:
the bold flag.

Definition at line 55 of file TxqListBoxText.h.

Referenced by paint().

void TxqListBoxText::paint ( QPainter * p ) [inline, protected, virtual]
 

Paint method overloaded to set the text bold if selected.

Definition at line 68 of file TxqListBoxText.h.

void TxqListBoxText::setBoldSelect ( bool b ) [inline]
 

Set true if this is to be painted bold.

Parameters:
b   the bold flag.

Definition at line 61 of file TxqListBoxText.h.


Member Data Documentation

bool TxqListBoxText::boldFlag [private]
 

The internal bold flag.

Definition at line 84 of file TxqListBoxText.h.


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