EnumValue Class Reference

[KGUI Index] [KGUI Hierarchy] [Headers]


Represents a enum value More...

#include <enumvalue.h>

Inherits: Value

Public Members

Protected Members


Detailed Description

Represents a enum value.


EnumValue() [public]

***************************************************************************\n ***************************************************************************\n

const char* toString() [public virtual]

Convert the value to a string.

void fromString(const char *) [public virtual]

Set the value from a string.

int toInt() [public virtual]

Convert the value to an int.

int index() [public]

Return the selected index.

void setIndex(int v) [public]

Set the selected index to v.

void addValue(const char *name, int value) [public virtual]

Add another entry to the Enum.

const QStrList* valueNames() [public]

Returns the names used for this Enum.


  • Author: Richard Moore
  • Documentation generated by rich@pegasus on Sat Apr 17 17:09:53 BST 1999
Kdoc