Logo Search packages:      
Sourcecode: qsapecng version File versions  Download package

Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Attributes

QtEnumPropertyManager Class Reference

The QtEnumPropertyManager provides and manages enum properties. More...

Inheritance diagram for QtEnumPropertyManager:
Inheritance graph
Collaboration diagram for QtEnumPropertyManager:
Collaboration graph

List of all members.

Public Slots

void setEnumIcons (QtProperty *property, const QMap< int, QIcon > &icons)
void setEnumNames (QtProperty *property, const QStringList &names)
void setValue (QtProperty *property, int val)


void enumIconsChanged (QtProperty *property, const QMap< int, QIcon > &icons)
void enumNamesChanged (QtProperty *property, const QStringList &names)
void propertyChanged (QtProperty *property)
void propertyDestroyed (QtProperty *property)
void propertyInserted (QtProperty *property, QtProperty *parent, QtProperty *after)
void propertyRemoved (QtProperty *property, QtProperty *parent)
void valueChanged (QtProperty *property, int val)

Public Member Functions

QtPropertyaddProperty (const QString &name=QString())
void clear () const
QMap< int, QIcon > enumIcons (const QtProperty *property) const
QStringList enumNames (const QtProperty *property) const
QSet< QtProperty * > properties () const
 QtEnumPropertyManager (QObject *parent=0)
int value (const QtProperty *property) const
 ~QtEnumPropertyManager ()

Protected Member Functions

virtual QtPropertycreateProperty ()
virtual bool hasValue (const QtProperty *property) const
virtual void initializeProperty (QtProperty *property)
virtual void uninitializeProperty (QtProperty *property)
QIcon valueIcon (const QtProperty *property) const
QString valueText (const QtProperty *property) const

Private Attributes


Detailed Description

The QtEnumPropertyManager provides and manages enum properties.

Each enum property has an associated list of enum names which can be retrieved using the enumNames() function, and set using the corresponding setEnumNames() function. An enum property's value is represented by an index in this list, and can be retrieved and set using the value() and setValue() slots respectively.

Each enum value can also have an associated icon. The mapping from values to icons can be set using the setEnumIcons() function and queried with the enumIcons() function.

In addition, QtEnumPropertyManager provides the valueChanged() signal which is emitted whenever a property created by this manager changes. The enumNamesChanged() or enumIconsChanged() signal is emitted whenever the list of enum names or icons is altered.

See also:
QtAbstractPropertyManager, QtEnumEditorFactory

Definition at line 605 of file qtpropertymanager.h.

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index