DecoratedDoublePropertyManager Class Reference
+ Inheritance diagram for DecoratedDoublePropertyManager:

Public Slots

void setPrefix (QtProperty *property, const QString &prefix)
 
void setSuffix (QtProperty *property, const QString &suffix)
 
- Public Slots inherited from QtDoublePropertyManager
void setDecimals (QtProperty *property, int prec)
 
void setMaximum (QtProperty *property, double maxVal)
 
void setMinimum (QtProperty *property, double minVal)
 
void setRange (QtProperty *property, double minVal, double maxVal)
 
void setReadOnly (QtProperty *property, bool readOnly)
 
void setSingleStep (QtProperty *property, double step)
 
void setValue (QtProperty *property, double val)
 

Signals

void prefixChanged (QtProperty *property, const QString &prefix)
 
void suffixChanged (QtProperty *property, const QString &suffix)
 
- Signals inherited from QtDoublePropertyManager
void decimalsChanged (QtProperty *property, int prec)
 
void rangeChanged (QtProperty *property, double minVal, double maxVal)
 
void readOnlyChanged (QtProperty *property, bool readOnly)
 
void singleStepChanged (QtProperty *property, double step)
 
void valueChanged (QtProperty *property, double 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

 DecoratedDoublePropertyManager (QObject *parent=0)
 
QString prefix (const QtProperty *property) const
 
QString suffix (const QtProperty *property) const
 
 ~DecoratedDoublePropertyManager ()
 
- Public Member Functions inherited from QtDoublePropertyManager
int decimals (const QtProperty *property) const
 
bool isReadOnly (const QtProperty *property) const
 
double maximum (const QtProperty *property) const
 
double minimum (const QtProperty *property) const
 
 QtDoublePropertyManager (QObject *parent=0)
 
double singleStep (const QtProperty *property) const
 
double value (const QtProperty *property) const
 
 ~QtDoublePropertyManager () override
 
- Public Member Functions inherited from QtAbstractPropertyManager
QtPropertyaddProperty (const QString &name=QString())
 
void clear () const
 
QSet< QtProperty * > properties () const
 
 QtAbstractPropertyManager (QObject *parent=0)
 
 ~QtAbstractPropertyManager () override
 

Protected Member Functions

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

Detailed Description

Definition at line 48 of file main.cpp.

Constructor & Destructor Documentation

◆ DecoratedDoublePropertyManager()

DecoratedDoublePropertyManager ( QObject *  parent = 0)

Definition at line 76 of file main.cpp.

◆ ~DecoratedDoublePropertyManager()

Definition at line 81 of file main.cpp.

Member Function Documentation

◆ initializeProperty()

void initializeProperty ( QtProperty property)
protectedvirtual

This function is called whenever a new valid property pointer has been created, passing the pointer as parameter.

The purpose is to let the manager know that the property has been created so that it can provide additional attributes for the new property, e.g. QtIntPropertyManager adds \l {QtIntPropertyManager::value()}{value}, \l {QtIntPropertyManager::minimum()}{minimum} and \l {QtIntPropertyManager::maximum()}{maximum} attributes. Since each manager subclass adds type specific attributes, this function is pure virtual and must be reimplemented when deriving from the QtAbstractPropertyManager class.

See also
addProperty(), createProperty()

Implements QtAbstractPropertyManager.

Definition at line 162 of file main.cpp.

+ Here is the call graph for this function:

◆ prefix()

QString prefix ( const QtProperty property) const

Definition at line 85 of file main.cpp.

+ Here is the caller graph for this function:

◆ prefixChanged

void prefixChanged ( QtProperty property,
const QString &  prefix 
)
signal
+ Here is the caller graph for this function:

◆ setPrefix

void setPrefix ( QtProperty property,
const QString &  prefix 
)
slot

Definition at line 105 of file main.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setSuffix

void setSuffix ( QtProperty property,
const QString &  suffix 
)
slot

Definition at line 126 of file main.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ suffix()

QString suffix ( const QtProperty property) const

Definition at line 95 of file main.cpp.

+ Here is the caller graph for this function:

◆ suffixChanged

void suffixChanged ( QtProperty property,
const QString &  suffix 
)
signal
+ Here is the caller graph for this function:

◆ uninitializeProperty()

void uninitializeProperty ( QtProperty property)
protectedvirtual

This function is called just before the specified property is destroyed.

The purpose is to let the property manager know that the property is being destroyed so that it can remove the property's additional attributes.

See also
clear(), propertyDestroyed()

Reimplemented from QtAbstractPropertyManager.

Definition at line 168 of file main.cpp.

+ Here is the call graph for this function:

◆ valueText()

QString valueText ( const QtProperty property) const
protectedvirtual

Returns a string representing the current state of the given property.

The default implementation of this function returns an empty string.

See also
QtProperty::valueText()

Reimplemented from QtAbstractPropertyManager.

Definition at line 147 of file main.cpp.

+ Here is the call graph for this function:

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