Computer Assited Medical Intervention Tool Kit  version 4.1
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
QtVariantPropertyManager Class Reference

The QtVariantPropertyManager class provides and manages QVariant based properties. More...

#include <qtvariantproperty.h>

Inherits QtAbstractPropertyManager.

Inherited by VariantManager.

Public Slots

virtual void setAttribute (QtProperty *property, const QString &attribute, const QVariant &value)
 
virtual void setAttribute (QtProperty *property, const QString &attribute, const QMap< int, QIcon > &value)
 
virtual void setValue (QtProperty *property, const QVariant &val)
 

Signals

void attributeChanged (QtProperty *property, const QString &attribute, const QVariant &val)
 
void valueChanged (QtProperty *property, const QVariant &val)
 
- Signals inherited from QtAbstractPropertyManager
void propertyChanged (QtProperty *property)
 
void propertyDestroyed (QtProperty *property)
 
void propertyInserted (QtProperty *property, QtProperty *parent, QtProperty *after)
 
void propertyRemoved (QtProperty *property, QtProperty *parent)
 

Public Member Functions

virtual QtVariantPropertyaddProperty (int propertyType, const QString &name=QString())
 
virtual QStringList attributes (int propertyType) const
 
virtual int attributeType (int propertyType, const QString &attribute) const
 
virtual QVariant attributeValue (const QtProperty *property, const QString &attribute) const
 
virtual bool isPropertyTypeSupported (int propertyType) const
 
int propertyType (const QtProperty *property) const
 
 QtVariantPropertyManager (QObject *parent=nullptr)
 
virtual QVariant value (const QtProperty *property) const
 
int valueType (const QtProperty *property) const
 
virtual int valueType (int propertyType) const
 
QtVariantPropertyvariantProperty (const QtProperty *property) const
 
 ~QtVariantPropertyManager () override
 
- Public Member Functions inherited from QtAbstractPropertyManager
QtPropertyaddProperty (const QString &name=QString())
 
void clear () const
 
QSet< QtProperty * > properties () const
 
 QtAbstractPropertyManager (QObject *parent=nullptr)
 
 ~QtAbstractPropertyManager () override
 

Static Public Member Functions

static int enumTypeId ()
 
static int flagTypeId ()
 
static int groupTypeId ()
 
static int iconMapTypeId ()
 

Protected Member Functions

QtPropertycreateProperty () override
 
bool hasValue (const QtProperty *property) const override
 
void initializeProperty (QtProperty *property) override
 
void uninitializeProperty (QtProperty *property) override
 
QIcon valueIcon (const QtProperty *property) const override
 
QString valueText (const QtProperty *property) const override
 
- Protected Member Functions inherited from QtAbstractPropertyManager
virtual QString displayText (const QtProperty *property) const
 
virtual EchoMode echoMode (const QtProperty *) const
 

Private Member Functions

 Q_PRIVATE_SLOT (d_func(), void slotValueChanged(QtProperty *, int)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void void void void void void void void void void void void void void void void void void void void void slotConstraintChanged (QtProperty *, const QRect &)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void void void void void void void void void void void void void void void void void void void void void void void slotConstraintChanged (QtProperty *, const QRectF &)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void slotDecimalsChanged (QtProperty *, int)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void void void void void slotEchoModeChanged (QtProperty *, int)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void slotEnumIconsChanged (QtProperty *, const QMap< int, QIcon > &)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void slotEnumNamesChanged (QtProperty *, const QStringList &)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void slotFlagNamesChanged (QtProperty *, const QStringList &)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void slotPropertyInserted (QtProperty *, QtProperty *, QtProperty *)) Q_PRIVATE_SLOT(d_func()
 
void slotRangeChanged (QtProperty *, int, int)) Q_PRIVATE_SLOT(d_func()
 
void void void void slotRangeChanged (QtProperty *, double, double)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void void void void void void void slotRangeChanged (QtProperty *, const QDate &, const QDate &)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void void void void void void void void void void void void void void void void void slotRangeChanged (QtProperty *, const QSize &, const QSize &)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void void void void void void void void void void void void void void void void void void void slotRangeChanged (QtProperty *, const QSizeF &, const QSizeF &)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void void void void slotRegExpChanged (QtProperty *, const QRegExp &)) Q_PRIVATE_SLOT(d_func()
 
void void slotSingleStepChanged (QtProperty *, int)) Q_PRIVATE_SLOT(d_func()
 
void void void void void slotSingleStepChanged (QtProperty *, double)) Q_PRIVATE_SLOT(d_func()
 
void void void slotValueChanged (QtProperty *, double)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void void slotValueChanged (QtProperty *, bool)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void void void slotValueChanged (QtProperty *, const QString &)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void void void void void void slotValueChanged (QtProperty *, const QDate &)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void void void void void void void void slotValueChanged (QtProperty *, const QTime &)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void void void void void void void void void slotValueChanged (QtProperty *, const QDateTime &)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void void void void void void void void void void slotValueChanged (QtProperty *, const QKeySequence &)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void void void void void void void void void void void slotValueChanged (QtProperty *, const QChar &)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void void void void void void void void void void void void slotValueChanged (QtProperty *, const QLocale &)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void void void void void void void void void void void void void slotValueChanged (QtProperty *, const QPoint &)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void void void void void void void void void void void void void void slotValueChanged (QtProperty *, const QPointF &)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void void void void void void void void void void void void void void void slotValueChanged (QtProperty *, const QVector3D &)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void void void void void void void void void void void void void void void void slotValueChanged (QtProperty *, const QSize &)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void void void void void void void void void void void void void void void void void void slotValueChanged (QtProperty *, const QSizeF &)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void void void void void void void void void void void void void void void void void void void void slotValueChanged (QtProperty *, const QRect &)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void void void void void void void void void void void void void void void void void void void void void void slotValueChanged (QtProperty *, const QRectF &)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void void void void void void void void void void void void void void void void void void void void void void void void slotValueChanged (QtProperty *, const QColor &)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void slotValueChanged (QtProperty *, const QSizePolicy &)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void slotValueChanged (QtProperty *, const QFont &)) Q_PRIVATE_SLOT(d_func()
 
void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void slotValueChanged (QtProperty *, const QCursor &)) Q_PRIVATE_SLOT(d_func()
 

Private Attributes

QtVariantPropertyManagerPrivated_ptr
 

Detailed Description

The QtVariantPropertyManager class provides and manages QVariant based properties.

QtVariantPropertyManager provides the addProperty() function which creates QtVariantProperty objects. The QtVariantProperty class is a convenience class handling QVariant based properties inheriting QtProperty. A QtProperty object created by a QtVariantPropertyManager instance can be converted into a QtVariantProperty object using the variantProperty() function.

The property's value can be retrieved using the value(), and set using the setValue() slot. In addition the property's type, and the type of its value, can be retrieved using the propertyType() and valueType() functions respectively.

A property's type is a QVariant::Type enumerator value, and usually a property's type is the same as its value type. But for some properties the types differ, for example for enums, flags and group types in which case QtVariantPropertyManager provides the enumTypeId(), flagTypeId() and groupTypeId() functions, respectively, to identify their property type (the value types are QVariant::Int for the enum and flag types, and QVariant::Invalid for the group type).

Use the isPropertyTypeSupported() function to check if a particular property type is supported. The currently supported property types are:

Property Type Property Type Id int QVariant::Int double QVariant::Double bool QVariant::Bool QString QVariant::String QDate QVariant::Date QTime QVariant::Time QDateTime QVariant::DateTime QKeySequence QVariant::KeySequence QChar QVariant::Char QLocale QVariant::Locale QPoint QVariant::Point QPointF QVariant::PointF QSize QVariant::Size QSizeF QVariant::SizeF QRect QVariant::Rect QRectF QVariant::RectF QVector3D QVariant::QVector3D QColor QVariant::Color QSizePolicy QVariant::SizePolicy QFont QVariant::Font QCursor QVariant::Cursor enum enumTypeId() flag flagTypeId() group groupTypeId()

Each property type can provide additional attributes, e.g. QVariant::Int and QVariant::Double provides minimum and maximum values. The currently supported attributes are:

Property Type Attribute Name Attribute Type int minimum QVariant::Int maximum QVariant::Int singleStep QVariant::Int double minimum QVariant::Double maximum QVariant::Double singleStep QVariant::Double decimals QVariant::Int QString regExp QVariant::RegExp QDate minimum QVariant::Date maximum QVariant::Date QPointF decimals QVariant::Int QSize minimum QVariant::Size maximum QVariant::Size QSizeF minimum QVariant::SizeF maximum QVariant::SizeF decimals QVariant::Int QRect constraint QVariant::Rect QRectF constraint QVariant::RectF decimals QVariant::Int enum enumNames QVariant::StringList enumIcons iconMapTypeId() flag flagNames QVariant::StringList

The attributes for a given property type can be retrieved using the attributes() function. Each attribute has a value type which can be retrieved using the attributeType() function, and a value accessible through the attributeValue() function. In addition, the value can be set using the setAttribute() slot.

QtVariantManager also provides the valueChanged() signal which is emitted whenever a property created by this manager change, and the attributeChanged() signal which is emitted whenever an attribute of such a property changes.

See also
QtVariantProperty, QtVariantEditorFactory

Constructor & Destructor Documentation

◆ QtVariantPropertyManager()

QtVariantPropertyManager::QtVariantPropertyManager ( QObject *  parent = nullptr)

◆ ~QtVariantPropertyManager()

QtVariantPropertyManager::~QtVariantPropertyManager ( )
override

Destroys this manager, and all the properties it has created.

References QtAbstractPropertyManager::clear(), and d_ptr.

Member Function Documentation

◆ addProperty()

QtVariantProperty * QtVariantPropertyManager::addProperty ( int  propertyType,
const QString &  name = QString() 
)
virtual

Creates and returns a variant property of the given propertyType with the given name.

If the specified propertyType is not supported by this variant manager, this function returns 0.

Do not use the inherited QtAbstractPropertyManager::addProperty() function to create a variant property (that function will always return 0 since it will not be clear what type the property should have).

See also
isPropertyTypeSupported()

References QtAbstractPropertyManager::addProperty(), d_ptr, isPropertyTypeSupported(), QtVariantPropertyManagerPrivate::m_creatingProperty, QtVariantPropertyManagerPrivate::m_propertyType, propertyType(), and variantProperty().

Referenced by ObjectControllerPrivate::addClassProperties(), camitk::ObjectControllerPrivate::addDynamicProperties(), camitk::ObjectControllerPrivate::buildQtVariantProperty(), QtVariantPropertyManagerPrivate::createSubProperty(), VariantManager::initializeProperty(), and main().

◆ attributeChanged

void QtVariantPropertyManager::attributeChanged ( QtProperty property,
const QString &  attribute,
const QVariant &  value 
)
signal

◆ attributes()

QStringList QtVariantPropertyManager::attributes ( int  propertyType) const
virtual

Returns a list of the given propertyType 's attributes.

See also
attributeValue(), attributeType()

References d_ptr, and QtVariantPropertyManagerPrivate::m_typeToAttributeToAttributeType.

Referenced by attributeType(), and attributeValue().

◆ attributeType()

int QtVariantPropertyManager::attributeType ( int  propertyType,
const QString &  attribute 
) const
virtual

Returns the type of the specified attribute of the given propertyType.

If the given propertyType is not supported by this manager, or if the given propertyType does not possess the specified attribute, this function returns QVariant::Invalid.

See also
attributes(), valueType()

References attributes(), d_ptr, and QtVariantPropertyManagerPrivate::m_typeToAttributeToAttributeType.

Referenced by setAttribute().

◆ attributeValue()

QVariant QtVariantPropertyManager::attributeValue ( const QtProperty property,
const QString &  attribute 
) const
virtual

◆ createProperty()

QtProperty * QtVariantPropertyManager::createProperty ( )
overrideprotectedvirtual

◆ enumTypeId()

int QtVariantPropertyManager::enumTypeId ( )
static

Returns the type id for an enum property.

Note that the property's value type can be retrieved using the valueType() function (which is QVariant::Int for the enum property type).

See also
propertyType(), valueType()

Referenced by ObjectControllerPrivate::addClassProperties(), camitk::ObjectControllerPrivate::buildQtVariantProperty(), QtVariantPropertyManagerPrivate::internalPropertyToType(), main(), QtVariantEditorFactory::QtVariantEditorFactory(), and QtVariantPropertyManager().

◆ flagTypeId()

int QtVariantPropertyManager::flagTypeId ( )
static

Returns the type id for a flag property.

Note that the property's value type can be retrieved using the valueType() function (which is QVariant::Int for the flag property type).

See also
propertyType(), valueType()

Referenced by ObjectControllerPrivate::addClassProperties(), camitk::ObjectControllerPrivate::buildQtVariantProperty(), main(), and QtVariantPropertyManager().

◆ groupTypeId()

int QtVariantPropertyManager::groupTypeId ( )
static

Returns the type id for a group property.

Note that the property's value type can be retrieved using the valueType() function (which is QVariant::Invalid for the group property type, since it doesn't provide any value).

See also
propertyType(), valueType()

Referenced by ObjectControllerPrivate::addClassProperties(), camitk::ObjectControllerPrivate::addDynamicProperties(), camitk::ObjectControllerPrivate::buildQtVariantProperty(), hasValue(), main(), and QtVariantPropertyManager().

◆ hasValue()

bool QtVariantPropertyManager::hasValue ( const QtProperty property) const
overrideprotectedvirtual

Reimplemented from QtAbstractPropertyManager.

References groupTypeId(), and propertyType().

◆ iconMapTypeId()

int QtVariantPropertyManager::iconMapTypeId ( )
static

Returns the type id for a icon map attribute.

Note that the property's attribute type can be retrieved using the attributeType() function.

See also
attributeType(), QtEnumPropertyManager::enumIcons()

Referenced by QtVariantPropertyManager().

◆ initializeProperty()

void QtVariantPropertyManager::initializeProperty ( QtProperty property)
overrideprotectedvirtual

◆ isPropertyTypeSupported()

bool QtVariantPropertyManager::isPropertyTypeSupported ( int  propertyType) const
virtual

◆ propertyType()

int QtVariantPropertyManager::propertyType ( const QtProperty property) const

◆ Q_PRIVATE_SLOT()

QtVariantPropertyManager::Q_PRIVATE_SLOT ( d_func()  ,
void   slotValueChangedQtProperty *, int 
)
private

◆ setAttribute [1/2]

void QtVariantPropertyManager::setAttribute ( QtProperty property,
const QString &  attribute,
const QVariant &  val 
)
virtualslot

◆ setAttribute [2/2]

void QtVariantPropertyManager::setAttribute ( QtProperty property,
const QString &  attribute,
const QMap< int, QIcon > &  val 
)
virtualslot

Added in CamiTK. In order to manage setting the icons list, the QtEnumPropertyManager needs a QMap<int,QIcon> But QMap<int,QIcon> cannot be transformed to QVariant, therefore this method had to be added.

References d_ptr, QtVariantPropertyManagerPrivate::m_enumIconsAttribute, and QtProperty::propertyManager().

◆ setValue

void QtVariantPropertyManager::setValue ( QtProperty property,
const QVariant &  value 
)
virtualslot

Sets the value of the given property to value.

The specified value must be of a type returned by valueType(), or of type that can be converted to valueType() using the QVariant::canConvert() function, otherwise this function does nothing.

See also
value(), QtVariantProperty::setValue(), valueChanged()

References QtProperty::propertyManager(), and valueType().

Referenced by VariantManager::setValue(), and QtVariantProperty::setValue().

◆ slotConstraintChanged() [1/2]

void void void void void void void void void void void void void void void void void void void void void void void void void void QtVariantPropertyManager::slotConstraintChanged ( QtProperty ,
const QRect &   
)
private

◆ slotConstraintChanged() [2/2]

void void void void void void void void void void void void void void void void void void void void void void void void void void void void QtVariantPropertyManager::slotConstraintChanged ( QtProperty ,
const QRectF &   
)
private

◆ slotDecimalsChanged()

void void void void void void QtVariantPropertyManager::slotDecimalsChanged ( QtProperty ,
int   
)
private

◆ slotEchoModeChanged()

void void void void void void void void void void QtVariantPropertyManager::slotEchoModeChanged ( QtProperty ,
int   
)
private

◆ slotEnumIconsChanged()

void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void QtVariantPropertyManager::slotEnumIconsChanged ( QtProperty ,
const QMap< int, QIcon > &   
)
private

◆ slotEnumNamesChanged()

void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void QtVariantPropertyManager::slotEnumNamesChanged ( QtProperty ,
const QStringList &   
)
private

◆ slotFlagNamesChanged()

void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void QtVariantPropertyManager::slotFlagNamesChanged ( QtProperty ,
const QStringList &   
)
private

◆ slotPropertyInserted()

void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void QtVariantPropertyManager::slotPropertyInserted ( QtProperty ,
QtProperty ,
QtProperty  
)
private

◆ slotRangeChanged() [1/5]

void QtVariantPropertyManager::slotRangeChanged ( QtProperty ,
int  ,
int   
)
private

◆ slotRangeChanged() [2/5]

void void void void QtVariantPropertyManager::slotRangeChanged ( QtProperty ,
double  ,
double   
)
private

◆ slotRangeChanged() [3/5]

void void void void void void void void void void void void QtVariantPropertyManager::slotRangeChanged ( QtProperty ,
const QDate &  ,
const QDate &   
)
private

◆ slotRangeChanged() [4/5]

void void void void void void void void void void void void void void void void void void void void void void QtVariantPropertyManager::slotRangeChanged ( QtProperty ,
const QSize &  ,
const QSize &   
)
private

◆ slotRangeChanged() [5/5]

void void void void void void void void void void void void void void void void void void void void void void void void QtVariantPropertyManager::slotRangeChanged ( QtProperty ,
const QSizeF &  ,
const QSizeF &   
)
private

◆ slotRegExpChanged()

void void void void void void void void void QtVariantPropertyManager::slotRegExpChanged ( QtProperty ,
const QRegExp &   
)
private

◆ slotSingleStepChanged() [1/2]

void void QtVariantPropertyManager::slotSingleStepChanged ( QtProperty ,
int   
)
private

◆ slotSingleStepChanged() [2/2]

void void void void void QtVariantPropertyManager::slotSingleStepChanged ( QtProperty ,
double   
)
private

◆ slotValueChanged() [1/20]

void void void QtVariantPropertyManager::slotValueChanged ( QtProperty ,
double   
)
private

◆ slotValueChanged() [2/20]

void void void void void void void QtVariantPropertyManager::slotValueChanged ( QtProperty ,
bool   
)
private

◆ slotValueChanged() [3/20]

void void void void void void void void QtVariantPropertyManager::slotValueChanged ( QtProperty ,
const QString &   
)
private

◆ slotValueChanged() [4/20]

void void void void void void void void void void void QtVariantPropertyManager::slotValueChanged ( QtProperty ,
const QDate &   
)
private

◆ slotValueChanged() [5/20]

void void void void void void void void void void void void void QtVariantPropertyManager::slotValueChanged ( QtProperty ,
const QTime &   
)
private

◆ slotValueChanged() [6/20]

void void void void void void void void void void void void void void QtVariantPropertyManager::slotValueChanged ( QtProperty ,
const QDateTime &   
)
private

◆ slotValueChanged() [7/20]

void void void void void void void void void void void void void void void QtVariantPropertyManager::slotValueChanged ( QtProperty ,
const QKeySequence &   
)
private

◆ slotValueChanged() [8/20]

void void void void void void void void void void void void void void void void QtVariantPropertyManager::slotValueChanged ( QtProperty ,
const QChar &   
)
private

◆ slotValueChanged() [9/20]

void void void void void void void void void void void void void void void void void QtVariantPropertyManager::slotValueChanged ( QtProperty ,
const QLocale &   
)
private

◆ slotValueChanged() [10/20]

void void void void void void void void void void void void void void void void void void QtVariantPropertyManager::slotValueChanged ( QtProperty ,
const QPoint &   
)
private

◆ slotValueChanged() [11/20]

void void void void void void void void void void void void void void void void void void void QtVariantPropertyManager::slotValueChanged ( QtProperty ,
const QPointF &   
)
private

◆ slotValueChanged() [12/20]

void void void void void void void void void void void void void void void void void void void void QtVariantPropertyManager::slotValueChanged ( QtProperty ,
const QVector3D &   
)
private

◆ slotValueChanged() [13/20]

void void void void void void void void void void void void void void void void void void void void void QtVariantPropertyManager::slotValueChanged ( QtProperty ,
const QSize &   
)
private

◆ slotValueChanged() [14/20]

void void void void void void void void void void void void void void void void void void void void void void void QtVariantPropertyManager::slotValueChanged ( QtProperty ,
const QSizeF &   
)
private

◆ slotValueChanged() [15/20]

void void void void void void void void void void void void void void void void void void void void void void void void void QtVariantPropertyManager::slotValueChanged ( QtProperty ,
const QRect &   
)
private

◆ slotValueChanged() [16/20]

void void void void void void void void void void void void void void void void void void void void void void void void void void void QtVariantPropertyManager::slotValueChanged ( QtProperty ,
const QRectF &   
)
private

◆ slotValueChanged() [17/20]

void void void void void void void void void void void void void void void void void void void void void void void void void void void void void QtVariantPropertyManager::slotValueChanged ( QtProperty ,
const QColor &   
)
private

◆ slotValueChanged() [18/20]

void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void QtVariantPropertyManager::slotValueChanged ( QtProperty ,
const QSizePolicy &   
)
private

◆ slotValueChanged() [19/20]

void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void QtVariantPropertyManager::slotValueChanged ( QtProperty ,
const QFont &   
)
private

◆ slotValueChanged() [20/20]

void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void QtVariantPropertyManager::slotValueChanged ( QtProperty ,
const QCursor &   
)
private

◆ uninitializeProperty()

void QtVariantPropertyManager::uninitializeProperty ( QtProperty property)
overrideprotectedvirtual

◆ value()

QVariant QtVariantPropertyManager::value ( const QtProperty property) const
virtual

Returns the given property's value.

If the given property is not managed by this manager, this function returns an invalid variant.

See also
setValue()

Reimplemented in VariantManager.

References QtProperty::propertyManager().

Referenced by VariantManager::value(), and QtVariantProperty::value().

◆ valueChanged

void QtVariantPropertyManager::valueChanged ( QtProperty property,
const QVariant &  value 
)
signal

This signal is emitted whenever a property created by this manager changes its value, passing a pointer to the property and the new value as parameters.

See also
setValue()

Referenced by QtVariantPropertyManager(), VariantManager::setValue(), QtVariantPropertyManagerPrivate::valueChanged(), and VariantManager::VariantManager().

◆ valueIcon()

QIcon QtVariantPropertyManager::valueIcon ( const QtProperty property) const
overrideprotectedvirtual

Reimplemented from QtAbstractPropertyManager.

References QtProperty::valueIcon().

◆ valueText()

QString QtVariantPropertyManager::valueText ( const QtProperty property) const
overrideprotectedvirtual

◆ valueType() [1/2]

int QtVariantPropertyManager::valueType ( const QtProperty property) const

Returns the given property's value type.

See also
propertyType()

References propertyType().

Referenced by setValue(), VariantManager::valueType(), and QtVariantProperty::valueType().

◆ valueType() [2/2]

int QtVariantPropertyManager::valueType ( int  propertyType) const
virtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Returns the value type associated with the given propertyType.

Reimplemented in VariantManager.

References d_ptr, QtVariantPropertyManagerPrivate::m_typeToValueType, and propertyType().

◆ variantProperty()

QtVariantProperty * QtVariantPropertyManager::variantProperty ( const QtProperty property) const

Returns the given property converted into a QtVariantProperty.

If the property was not created by this variant manager, the function returns 0.

See also
createProperty()

References d_ptr, and QtVariantPropertyManagerPrivate::m_propertyToType.

Referenced by addProperty(), and initializeProperty().

Member Data Documentation

◆ d_ptr

QtVariantPropertyManagerPrivate* QtVariantPropertyManager::d_ptr
private

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