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

Public Member Functions | Protected Member Functions | Private Attributes | Friends

QtProperty Class Reference

The QtProperty class encapsulates an instance of a property. More...

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

List of all members.

Public Member Functions

void addSubProperty (QtProperty *property)
bool hasValue () const
void insertSubProperty (QtProperty *property, QtProperty *afterProperty)
bool isEnabled () const
bool isModified () const
QtAbstractPropertyManagerpropertyManager () const
QString propertyName () const
void removeSubProperty (QtProperty *property)
void setEnabled (bool enable)
void setModified (bool modified)
void setPropertyName (const QString &text)
void setStatusTip (const QString &text)
void setToolTip (const QString &text)
void setWhatsThis (const QString &text)
QString statusTip () const
QList< QtProperty * > subProperties () const
QString toolTip () const
QIcon valueIcon () const
QString valueText () const
QString whatsThis () const
virtual ~QtProperty ()

Protected Member Functions

void propertyChanged ()
 QtProperty (QtAbstractPropertyManager *manager)

Private Attributes

QtPropertyPrivated_ptr

Friends

class QtAbstractPropertyManager

Detailed Description

The QtProperty class encapsulates an instance of a property.

Properties are created by objects of QtAbstractPropertyManager subclasses; a manager can create properties of a given type, and is used in conjunction with the QtAbstractPropertyBrowser class. A property is always owned by the manager that created it, which can be retrieved using the propertyManager() function.

QtProperty contains the most common property attributes, and provides functions for retrieving as well as setting their values:

Getter Setter propertyName() setPropertyName() statusTip() setStatusTip() toolTip() setToolTip() whatsThis() setWhatsThis() isEnabled() setEnabled() isModified() setModified() valueText() Nop valueIcon() Nop

It is also possible to nest properties: QtProperty provides the addSubProperty(), insertSubProperty() and removeSubProperty() functions to manipulate the set of subproperties. Use the subProperties() function to retrieve a property's current set of subproperties. Note that nested properties are not owned by the parent property, i.e. each subproperty is owned by the manager that created it.

See also:
QtAbstractPropertyManager, QtBrowserItem

Definition at line 118 of file qtpropertybrowser.h.


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

Generated by  Doxygen 1.6.0   Back to index