Public Slots | |
void | setPrefix (QtProperty *property, const QString &prefix) |
void | setSuffix (QtProperty *property, const QString &suffix) |
![]() | |
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) |
![]() | |
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) |
![]() | |
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 () | |
![]() | |
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=nullptr) | |
double | singleStep (const QtProperty *property) const |
double | value (const QtProperty *property) const |
~QtDoublePropertyManager () override | |
![]() | |
QtProperty * | addProperty (const QString &name=QString()) |
void | clear () const |
QSet< QtProperty * > | properties () const |
QtAbstractPropertyManager (QObject *parent=nullptr) | |
~QtAbstractPropertyManager () override | |
Protected Member Functions | |
virtual void | initializeProperty (QtProperty *property) |
virtual void | uninitializeProperty (QtProperty *property) |
QString | valueText (const QtProperty *property) const |
![]() | |
void | initializeProperty (QtProperty *property) override |
void | uninitializeProperty (QtProperty *property) override |
QString | valueText (const QtProperty *property) const override |
![]() | |
virtual QtProperty * | createProperty () |
virtual QString | displayText (const QtProperty *property) const |
virtual EchoMode | echoMode (const QtProperty *) const |
virtual bool | hasValue (const QtProperty *property) const |
virtual void | initializeProperty (QtProperty *property)=0 |
virtual void | uninitializeProperty (QtProperty *property) |
virtual QIcon | valueIcon (const QtProperty *property) const |
virtual QString | valueText (const QtProperty *property) const |
DecoratedDoublePropertyManager::DecoratedDoublePropertyManager | ( | QObject * | parent = 0 | ) |
DecoratedDoublePropertyManager::~DecoratedDoublePropertyManager | ( | ) |
|
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
{QtIntPropertyManager::value()}{value},
{QtIntPropertyManager::minimum()}{minimum} and
{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.
Implements QtAbstractPropertyManager.
References QtDoublePropertyManager::initializeProperty().
QString DecoratedDoublePropertyManager::prefix | ( | const QtProperty * | property | ) | const |
Referenced by DecoratedDoubleSpinBoxFactory::createEditor(), and setPrefix().
|
signal |
Referenced by setPrefix().
|
slot |
References prefix(), prefixChanged(), and QtAbstractPropertyManager::propertyChanged().
Referenced by main().
|
slot |
References QtAbstractPropertyManager::propertyChanged(), suffix(), and suffixChanged().
Referenced by main().
QString DecoratedDoublePropertyManager::suffix | ( | const QtProperty * | property | ) | const |
Referenced by DecoratedDoubleSpinBoxFactory::createEditor(), and setSuffix().
|
signal |
Referenced by setSuffix().
|
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.
Reimplemented from QtAbstractPropertyManager.
References QtDoublePropertyManager::uninitializeProperty().
|
protectedvirtual |
Returns a string representing the current state of the given property.
The default implementation of this function returns an empty string.
Reimplemented from QtAbstractPropertyManager.
References QtDoublePropertyManager::valueText().