QMetaPropertyBuilder Class

The QMetaPropertyBuilder class enables modifications to a property definition on a meta object builder. More...

Header: #include <QMetaPropertyBuilder>

Public Functions

bool hasNotifySignal() const
bool hasStdCppSet() const
bool isAlias() const
bool isBindable() const
bool isConstant() const
bool isDesignable() const
bool isEnumOrFlag() const
bool isFinal() const
bool isReadable() const
bool isResettable() const
bool isScriptable() const
bool isStored() const
bool isUser() const
bool isWritable() const
QByteArray name() const
QMetaMethodBuilder notifySignal() const
void removeNotifySignal()
int revision() const
void setAlias(bool value)
void setBindable(bool value)
void setConstant(bool value)
void setDesignable(bool value)
void setEnumOrFlag(bool value)
void setFinal(bool value)
void setNotifySignal(const QMetaMethodBuilder &value)
void setReadable(bool value)
void setResettable(bool value)
void setRevision(int revision)
void setScriptable(bool value)
void setStdCppSet(bool value)
void setStored(bool value)
void setUser(bool value)
void setWritable(bool value)
QByteArray type() const

Detailed Description

\inmoduleQtCore \internal

Member Function Documentation

bool QMetaPropertyBuilder::hasNotifySignal() const

Returns true if this property has a notify signal; false otherwise.

See also notifySignal(), setNotifySignal(), and removeNotifySignal().

bool QMetaPropertyBuilder::hasStdCppSet() const

Returns true if the property has a C++ setter function that follows Qt's standard "name" / "setName" pattern. Designer and uic query hasStdCppSet() in order to avoid expensive QObject::setProperty() calls. All properties in Qt [should] follow this pattern. The default value is false.

See also setStdCppSet().

bool QMetaPropertyBuilder::isAlias() const

Returns true if the property is an alias. The default value is false

bool QMetaPropertyBuilder::isBindable() const

Returns true if the property is bindable The default value is false

bool QMetaPropertyBuilder::isConstant() const

Returns true if the property is constant; otherwise returns false. The default value is false.

bool QMetaPropertyBuilder::isDesignable() const

Returns true if this property is designable; otherwise returns false. This default value is false.

See also setDesignable(), isScriptable(), and isStored().

bool QMetaPropertyBuilder::isEnumOrFlag() const

Returns true if the property is an enumerator or flag type; otherwise returns false. This default value is false.

See also setEnumOrFlag().

bool QMetaPropertyBuilder::isFinal() const

Returns true if the property is final; otherwise returns false. The default value is false.

bool QMetaPropertyBuilder::isReadable() const

Returns true if this property is readable; otherwise returns false. The default value is true.

See also setReadable() and isWritable().

bool QMetaPropertyBuilder::isResettable() const

Returns true if this property can be reset to a default value; otherwise returns false. The default value is false.

See also setResettable().

bool QMetaPropertyBuilder::isScriptable() const

Returns true if the property is scriptable; otherwise returns false. This default value is true.

See also setScriptable(), isDesignable(), and isStored().

bool QMetaPropertyBuilder::isStored() const

Returns true if the property is stored; otherwise returns false. This default value is false.

See also setStored(), isDesignable(), and isScriptable().

bool QMetaPropertyBuilder::isUser() const

Returns true if this property is designated as the USER property, i.e., the one that the user can edit or that is significant in some other way. Otherwise it returns false. This default value is false.

See also setUser(), isDesignable(), and isScriptable().

bool QMetaPropertyBuilder::isWritable() const

Returns true if this property is writable; otherwise returns false. The default value is true.

See also setWritable() and isReadable().

QByteArray QMetaPropertyBuilder::name() const

Returns the name associated with this property.

See also type().

QMetaMethodBuilder QMetaPropertyBuilder::notifySignal() const

Returns the notify signal associated with this property.

See also hasNotifySignal(), setNotifySignal(), and removeNotifySignal().

void QMetaPropertyBuilder::removeNotifySignal()

Removes the notify signal from this property.

See also hasNotifySignal(), notifySignal(), and setNotifySignal().

int QMetaPropertyBuilder::revision() const

Returns the revision of this property.

See also setRevision().

void QMetaPropertyBuilder::setAlias(bool value)

Sets the ALIAS flag on this property to value

See also isAlias().

void QMetaPropertyBuilder::setBindable(bool value)

Sets theBINDABLE flag on this property to value

See also isBindable().

void QMetaPropertyBuilder::setConstant(bool value)

Sets the CONSTANT flag on this property to value.

See also isConstant().

void QMetaPropertyBuilder::setDesignable(bool value)

Sets this property to designable if value is true.

See also isDesignable(), setScriptable(), and setStored().

void QMetaPropertyBuilder::setEnumOrFlag(bool value)

Sets this property to be of an enumerator or flag type if value is true.

See also isEnumOrFlag().

void QMetaPropertyBuilder::setFinal(bool value)

Sets the FINAL flag on this property to value.

See also isFinal().

void QMetaPropertyBuilder::setNotifySignal(const QMetaMethodBuilder &value)

Sets the notify signal associated with this property to value.

See also hasNotifySignal(), notifySignal(), and removeNotifySignal().

void QMetaPropertyBuilder::setReadable(bool value)

Sets this property to readable if value is true.

See also isReadable() and setWritable().

void QMetaPropertyBuilder::setResettable(bool value)

Sets this property to resettable if value is true.

See also isResettable().

void QMetaPropertyBuilder::setRevision(int revision)

Sets the revision of this property.

See also revision().

void QMetaPropertyBuilder::setScriptable(bool value)

Sets this property to scriptable if value is true.

See also isScriptable(), setDesignable(), and setStored().

void QMetaPropertyBuilder::setStdCppSet(bool value)

Sets the C++ setter flag on this property to value, which is true if the property has a C++ setter function that follows Qt's standard "name" / "setName" pattern.

See also hasStdCppSet().

void QMetaPropertyBuilder::setStored(bool value)

Sets this property to storable if value is true.

See also isStored(), setDesignable(), and setScriptable().

void QMetaPropertyBuilder::setUser(bool value)

Sets the USER flag on this property to value.

See also isUser(), setDesignable(), and setScriptable().

void QMetaPropertyBuilder::setWritable(bool value)

Sets this property to writable if value is true.

See also isWritable() and setReadable().

QByteArray QMetaPropertyBuilder::type() const

Returns the type associated with this property.

See also name().