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

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

QtFlagPropertyManager Class Reference

The QtFlagPropertyManager provides and manages flag properties. More...

Inheritance diagram for QtFlagPropertyManager:
Inheritance graph
[legend]
Collaboration diagram for QtFlagPropertyManager:
Collaboration graph
[legend]

List of all members.

Public Slots

void setFlagNames (QtProperty *property, const QStringList &names)
void setValue (QtProperty *property, int val)

Signals

void flagNamesChanged (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
QStringList flagNames (const QtProperty *property) const
QSet< QtProperty * > properties () const
 QtFlagPropertyManager (QObject *parent=0)
QtBoolPropertyManagersubBoolPropertyManager () const
int value (const QtProperty *property) const
 ~QtFlagPropertyManager ()

Protected Member Functions

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

Private Member Functions

 Q_PRIVATE_SLOT (d_func(), void slotBoolChanged(QtProperty *, bool)) Q_PRIVATE_SLOT(d_func()

Private Attributes

QtFlagPropertyManagerPrivated_ptr

Detailed Description

The QtFlagPropertyManager provides and manages flag properties.

Each flag property has an associated list of flag names which can be retrieved using the flagNames() function, and set using the corresponding setFlagNames() function.

The flag manager provides properties with nested boolean subproperties representing each flag, i.e. a flag property's value is the binary combination of the subproperties' values. A property's value can be retrieved and set using the value() and setValue() slots respectively. The combination of flags is represented by single int value - that's why it's possible to store up to 32 independent flags in one flag property.

The subproperties are created by a QtBoolPropertyManager object. This manager can be retrieved using the subBoolPropertyManager() function. In order to provide editing widgets for the subproperties in a property browser widget, this manager must be associated with an editor factory.

In addition, QtFlagPropertyManager provides the valueChanged() signal which is emitted whenever a property created by this manager changes, and the flagNamesChanged() signal which is emitted whenever the list of flag names is altered.

See also:
QtAbstractPropertyManager, QtBoolPropertyManager

Definition at line 637 of file qtpropertymanager.h.


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

Generated by  Doxygen 1.6.0   Back to index