OptionRenderer

The OptionRenderer class provides a QComboBox that can be embedded in an HTML form.

Publicly inherits FormObjectRenderer.

Public Methods

OptionRenderer( 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

QComboBox*_comboBox;
int_selected;
QStrList_values;

Public Methods Documentation

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

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

bool redraw ( );

Resize the combo box to fit its contents.

QString value ( );

A value is returned only if the combo 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