![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtCore More...
#include <qmetaobjectbuilder_p.h>
Public Member Functions | |
| QMetaPropertyBuilder () | |
| int | index () const |
| Returns the index of this property within its QMetaObjectBuilder. | |
| QByteArray | name () const |
| Returns the name associated with this property. | |
| QByteArray | type () const |
| Returns the type associated with this property. | |
| bool | hasNotifySignal () const |
Returns true if this property has a notify signal; false otherwise. | |
| QMetaMethodBuilder | notifySignal () const |
| Returns the notify signal associated with this property. | |
| void | setNotifySignal (const QMetaMethodBuilder &value) |
| Sets the notify signal associated with this property to value. | |
| void | removeNotifySignal () |
| Removes the notify signal from this property. | |
| bool | isReadable () const |
Returns true if this property is readable; otherwise returns false. | |
| bool | isWritable () const |
Returns true if this property is writable; otherwise returns false. | |
| bool | isResettable () const |
Returns true if this property can be reset to a default value; otherwise returns false. | |
| bool | isDesignable () const |
Returns true if this property is designable; otherwise returns false. | |
| bool | isScriptable () const |
Returns true if the property is scriptable; otherwise returns false. | |
| bool | isStored () const |
Returns true if the property is stored; otherwise returns false. | |
| bool | isEditable () const |
| bool | 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. | |
| bool | hasStdCppSet () const |
Returns true if the property has a C++ setter function that follows Qt's standard "name" / "setName" pattern. | |
| bool | isEnumOrFlag () const |
Returns true if the property is an enumerator or flag type; otherwise returns false. | |
| bool | isConstant () const |
Returns true if the property is constant; otherwise returns false. | |
| bool | isFinal () const |
Returns true if the property is final; otherwise returns false. | |
| bool | isVirtual () const |
Returns true if the property is virtual; otherwise returns false. | |
| bool | isOverride () const |
Returns true if the property does override; otherwise returns false. | |
| bool | isAlias () const |
Returns true if the property is an alias. | |
| bool | isBindable () const |
Returns true if the property is bindable The default value is false. | |
| bool | isRequired () const |
Returns true if the property is required. | |
| void | setReadable (bool value) |
| Sets this property to readable if value is true. | |
| void | setWritable (bool value) |
| Sets this property to writable if value is true. | |
| void | setResettable (bool value) |
| Sets this property to resettable if value is true. | |
| void | setDesignable (bool value) |
| Sets this property to designable if value is true. | |
| void | setScriptable (bool value) |
| Sets this property to scriptable if value is true. | |
| void | setStored (bool value) |
| Sets this property to storable if value is true. | |
| void | setUser (bool value) |
Sets the USER flag on this property to value. | |
| void | 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. | |
| void | setEnumOrFlag (bool value) |
| Sets this property to be of an enumerator or flag type if value is true. | |
| void | setConstant (bool value) |
Sets the CONSTANT flag on this property to value. | |
| void | setFinal (bool value) |
Sets the FINAL flag on this property to value. | |
| void | setVirtual (bool value) |
Sets the VIRTUAL flag on this property to value. | |
| void | setOverride (bool value) |
Sets the OVERRIDE flag on this property to value. | |
| void | setAlias (bool value) |
Sets the ALIAS flag on this property to value. | |
| void | setBindable (bool value) |
Sets theBINDABLE flag on this property to value. | |
| void | setRequired (bool value) |
Sets theREQUIRED flag on this property to value. | |
| int | revision () const |
| Returns the revision of this property. | |
| void | setRevision (int revision) |
| Sets the revision of this property. | |
Friends | |
| class | QMetaObjectBuilder |
\inmodule QtCore
The QMetaPropertyBuilder class enables modifications to a property definition on a meta object builder.
Definition at line 190 of file qmetaobjectbuilder_p.h.
|
inline |
Definition at line 193 of file qmetaobjectbuilder_p.h.
| bool QMetaPropertyBuilder::hasNotifySignal | ( | ) | const |
Returns true if this property has a notify signal; false otherwise.
Definition at line 1855 of file qmetaobjectbuilder.cpp.
| 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.
Definition at line 2023 of file qmetaobjectbuilder.cpp.
|
inline |
Returns the index of this property within its QMetaObjectBuilder.
Definition at line 195 of file qmetaobjectbuilder_p.h.
| bool QMetaPropertyBuilder::isAlias | ( | ) | const |
Returns true if the property is an alias.
The default value is false
Definition at line 2103 of file qmetaobjectbuilder.cpp.
| bool QMetaPropertyBuilder::isBindable | ( | ) | const |
Returns true if the property is bindable The default value is false.
Definition at line 2116 of file qmetaobjectbuilder.cpp.
| bool QMetaPropertyBuilder::isConstant | ( | ) | const |
Returns true if the property is constant; otherwise returns false.
The default value is false.
Definition at line 2051 of file qmetaobjectbuilder.cpp.
| bool QMetaPropertyBuilder::isDesignable | ( | ) | const |
Returns true if this property is designable; otherwise returns false.
This default value is false.
Definition at line 1958 of file qmetaobjectbuilder.cpp.
| bool QMetaPropertyBuilder::isEditable | ( | ) | const |
| bool QMetaPropertyBuilder::isEnumOrFlag | ( | ) | const |
Returns true if the property is an enumerator or flag type; otherwise returns false.
This default value is false.
Definition at line 2038 of file qmetaobjectbuilder.cpp.
| bool QMetaPropertyBuilder::isFinal | ( | ) | const |
Returns true if the property is final; otherwise returns false.
The default value is false.
Definition at line 2064 of file qmetaobjectbuilder.cpp.
| bool QMetaPropertyBuilder::isOverride | ( | ) | const |
Returns true if the property does override; otherwise returns false.
The default value is false.
Definition at line 2090 of file qmetaobjectbuilder.cpp.
| bool QMetaPropertyBuilder::isReadable | ( | ) | const |
Returns true if this property is readable; otherwise returns false.
The default value is true.
Definition at line 1913 of file qmetaobjectbuilder.cpp.
| bool QMetaPropertyBuilder::isRequired | ( | ) | const |
Returns true if the property is required.
The default is false.
Definition at line 2127 of file qmetaobjectbuilder.cpp.
| bool QMetaPropertyBuilder::isResettable | ( | ) | const |
Returns true if this property can be reset to a default value; otherwise returns false.
The default value is false.
Definition at line 1943 of file qmetaobjectbuilder.cpp.
| bool QMetaPropertyBuilder::isScriptable | ( | ) | const |
Returns true if the property is scriptable; otherwise returns false.
This default value is true.
Definition at line 1973 of file qmetaobjectbuilder.cpp.
| bool QMetaPropertyBuilder::isStored | ( | ) | const |
Returns true if the property is stored; otherwise returns false.
This default value is false.
Definition at line 1988 of file qmetaobjectbuilder.cpp.
| 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.
Definition at line 2005 of file qmetaobjectbuilder.cpp.
| bool QMetaPropertyBuilder::isVirtual | ( | ) | const |
Returns true if the property is virtual; otherwise returns false.
The default value is false.
Definition at line 2077 of file qmetaobjectbuilder.cpp.
| bool QMetaPropertyBuilder::isWritable | ( | ) | const |
Returns true if this property is writable; otherwise returns false.
The default value is true.
Definition at line 1928 of file qmetaobjectbuilder.cpp.
| QByteArray QMetaPropertyBuilder::name | ( | ) | const |
Returns the name associated with this property.
Definition at line 1827 of file qmetaobjectbuilder.cpp.
| QMetaMethodBuilder QMetaPropertyBuilder::notifySignal | ( | ) | const |
Returns the notify signal associated with this property.
Definition at line 1869 of file qmetaobjectbuilder.cpp.
| void QMetaPropertyBuilder::removeNotifySignal | ( | ) |
Removes the notify signal from this property.
Definition at line 1900 of file qmetaobjectbuilder.cpp.
| int QMetaPropertyBuilder::revision | ( | ) | const |
Returns the revision of this property.
Definition at line 2327 of file qmetaobjectbuilder.cpp.
| void QMetaPropertyBuilder::setAlias | ( | bool | value | ) |
Sets the ALIAS flag on this property to value.
Definition at line 2297 of file qmetaobjectbuilder.cpp.
| void QMetaPropertyBuilder::setBindable | ( | bool | value | ) |
Sets theBINDABLE flag on this property to value.
Definition at line 2307 of file qmetaobjectbuilder.cpp.
| void QMetaPropertyBuilder::setConstant | ( | bool | value | ) |
Sets the CONSTANT flag on this property to value.
Definition at line 2251 of file qmetaobjectbuilder.cpp.
| void QMetaPropertyBuilder::setDesignable | ( | bool | value | ) |
Sets this property to designable if value is true.
Definition at line 2176 of file qmetaobjectbuilder.cpp.
| void QMetaPropertyBuilder::setEnumOrFlag | ( | bool | value | ) |
Sets this property to be of an enumerator or flag type if value is true.
Definition at line 2239 of file qmetaobjectbuilder.cpp.
| void QMetaPropertyBuilder::setFinal | ( | bool | value | ) |
Sets the FINAL flag on this property to value.
Definition at line 2263 of file qmetaobjectbuilder.cpp.
| void QMetaPropertyBuilder::setNotifySignal | ( | const QMetaMethodBuilder & | value | ) |
Sets the notify signal associated with this property to value.
Definition at line 1883 of file qmetaobjectbuilder.cpp.
| void QMetaPropertyBuilder::setOverride | ( | bool | value | ) |
Sets the OVERRIDE flag on this property to value.
Definition at line 2287 of file qmetaobjectbuilder.cpp.
| void QMetaPropertyBuilder::setReadable | ( | bool | value | ) |
Sets this property to readable if value is true.
Definition at line 2140 of file qmetaobjectbuilder.cpp.
| void QMetaPropertyBuilder::setRequired | ( | bool | value | ) |
Sets theREQUIRED flag on this property to value.
Definition at line 2316 of file qmetaobjectbuilder.cpp.
| void QMetaPropertyBuilder::setResettable | ( | bool | value | ) |
Sets this property to resettable if value is true.
Definition at line 2164 of file qmetaobjectbuilder.cpp.
| void QMetaPropertyBuilder::setRevision | ( | int | revision | ) |
Sets the revision of this property.
Definition at line 2340 of file qmetaobjectbuilder.cpp.
| void QMetaPropertyBuilder::setScriptable | ( | bool | value | ) |
Sets this property to scriptable if value is true.
Definition at line 2188 of file qmetaobjectbuilder.cpp.
| 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.
Definition at line 2226 of file qmetaobjectbuilder.cpp.
| void QMetaPropertyBuilder::setStored | ( | bool | value | ) |
Sets this property to storable if value is true.
Definition at line 2200 of file qmetaobjectbuilder.cpp.
| void QMetaPropertyBuilder::setUser | ( | bool | value | ) |
Sets the USER flag on this property to value.
Definition at line 2212 of file qmetaobjectbuilder.cpp.
| void QMetaPropertyBuilder::setVirtual | ( | bool | value | ) |
Sets the VIRTUAL flag on this property to value.
Definition at line 2275 of file qmetaobjectbuilder.cpp.
| void QMetaPropertyBuilder::setWritable | ( | bool | value | ) |
Sets this property to writable if value is true.
Definition at line 2152 of file qmetaobjectbuilder.cpp.
| QByteArray QMetaPropertyBuilder::type | ( | ) | const |
Returns the type associated with this property.
Definition at line 1841 of file qmetaobjectbuilder.cpp.
|
friend |
Definition at line 247 of file qmetaobjectbuilder_p.h.