ListBoxRenderer

The ListBoxRenderer class provides a QListBox that can be embedded in an HTML form.

Publicly inherits FormObjectRenderer.

Public Methods

ListBoxRenderer( int size, Canvas* canvas, int clipWidth=???, QObject* parent=???, const char* name=??? );
voidaddItem( const char* text, bool selected, const char* value );
boolredraw( );
voidreset( );
QStringvalue( );

Public Slots

voidendOfData( );

Private Data Members

QListBox*_listBox;
int_selected;
QStrList_values;

Public Methods Documentation

void addItem ( const char* text, bool selected, const char* value );

Add an item to the list box. If no value is given then the text will be used as the item's value.

bool redraw ( );

Resize the list box to fit its contents.

QString value ( );

A value is returned only if the list box has a name. Otherwise, an empty string is returned.

Public Slots Documentation

void endOfData ( );

Do nothing.


Return to Index.
Automatically generated on Aug 11 23:32