Qt 4.8
|
The QMetaPropertyBuilder class enables modifications to a property definition on a meta object builder. More...
#include <qmetaobjectbuilder_p.h>
Public Functions | |
bool | hasNotifySignal () const |
Returns true if this property has a notify signal; false otherwise. More... | |
bool | hasStdCppSet () const |
Returns true if the property has a C++ setter function that follows Qt's standard "name" / "setName" pattern. More... | |
int | index () const |
Returns the index of this property within its QMetaObjectBuilder. More... | |
bool | isConstant () const |
Returns true if the property is constant; otherwise returns false. More... | |
bool | isDesignable () const |
Returns true if this property is designable; otherwise returns false. More... | |
bool | isEditable () const |
Returns true if the property is editable; otherwise returns false. More... | |
bool | isEnumOrFlag () const |
Returns true if the property is an enumerator or flag type; otherwise returns false. More... | |
bool | isFinal () const |
Returns true if the property is final; otherwise returns false. More... | |
bool | isReadable () const |
Returns true if this property is readable; otherwise returns false. More... | |
bool | isResettable () const |
Returns true if this property can be reset to a default value; otherwise returns false. More... | |
bool | isScriptable () const |
Returns true if the property is scriptable; otherwise returns false. More... | |
bool | isStored () const |
Returns true if the property is stored; otherwise returns false. More... | |
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. More... | |
bool | isWritable () const |
Returns true if this property is writable; otherwise returns false. More... | |
QByteArray | name () const |
Returns the name associated with this property. More... | |
QMetaMethodBuilder | notifySignal () const |
Returns the notify signal associated with this property. More... | |
QMetaPropertyBuilder () | |
void | removeNotifySignal () |
Removes the notify signal from this property. More... | |
void | setConstant (bool value) |
Sets the CONSTANT flag on this property to value. More... | |
void | setDesignable (bool value) |
Sets this property to designable if value is true. More... | |
void | setEditable (bool value) |
Sets this property to editable if value is true. More... | |
void | setEnumOrFlag (bool value) |
Sets this property to be of an enumerator or flag type if value is true. More... | |
void | setFinal (bool value) |
Sets the FINAL flag on this property to value. More... | |
void | setNotifySignal (const QMetaMethodBuilder &value) |
Sets the notify signal associated with this property to value. More... | |
void | setReadable (bool value) |
Sets this property to readable if value is true. More... | |
void | setResettable (bool value) |
Sets this property to resettable if value is true. More... | |
void | setScriptable (bool value) |
Sets this property to scriptable if value is true. More... | |
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. More... | |
void | setStored (bool value) |
Sets this property to storable if value is true. More... | |
void | setUser (bool value) |
Sets the USER flag on this property to value. More... | |
void | setWritable (bool value) |
Sets this property to writable if value is true. More... | |
QByteArray | type () const |
Returns the type associated with this property. More... | |
Private Functions | |
QMetaPropertyBuilderPrivate * | d_func () const |
QMetaPropertyBuilder (const QMetaObjectBuilder *mobj, int index) | |
Properties | |
int | _index |
const QMetaObjectBuilder * | _mobj |
Friends | |
class | QMetaObjectBuilder |
The QMetaPropertyBuilder class enables modifications to a property definition on a meta object builder.
Definition at line 236 of file qmetaobjectbuilder_p.h.
|
inline |
Definition at line 239 of file qmetaobjectbuilder_p.h.
|
inlineprivate |
Definition at line 283 of file qmetaobjectbuilder_p.h.
|
private |
Definition at line 2035 of file qmetaobjectbuilder.cpp.
Referenced by QMetaMethodBuilder::QMetaMethodBuilder().
bool QMetaPropertyBuilder::hasNotifySignal | ( | ) | const |
Returns true if this property has a notify signal; false otherwise.
Definition at line 2090 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 2277 of file qmetaobjectbuilder.cpp.
|
inline |
Returns the index of this property within its QMetaObjectBuilder.
Definition at line 241 of file qmetaobjectbuilder_p.h.
bool QMetaPropertyBuilder::isConstant | ( | ) | const |
Returns true if the property is constant; otherwise returns false.
The default value is false.
Definition at line 2305 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 2197 of file qmetaobjectbuilder.cpp.
bool QMetaPropertyBuilder::isEditable | ( | ) | const |
Returns true if the property is editable; otherwise returns false.
This default value is false.
Definition at line 2242 of file qmetaobjectbuilder.cpp.
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 2292 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 2318 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 2152 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 2182 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 2212 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 2227 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 2259 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 2167 of file qmetaobjectbuilder.cpp.
QByteArray QMetaPropertyBuilder::name | ( | ) | const |
Returns the name associated with this property.
Definition at line 2062 of file qmetaobjectbuilder.cpp.
Referenced by QDeclarativeOpenMetaObject::name(), and QDeclarativePropertyMapMetaObject::propertyCreated().
QMetaMethodBuilder QMetaPropertyBuilder::notifySignal | ( | ) | const |
Returns the notify signal associated with this property.
Definition at line 2104 of file qmetaobjectbuilder.cpp.
void QMetaPropertyBuilder::removeNotifySignal | ( | ) |
Removes the notify signal from this property.
Definition at line 2137 of file qmetaobjectbuilder.cpp.
void QMetaPropertyBuilder::setConstant | ( | bool | value | ) |
Sets the CONSTANT
flag on this property to value.
Definition at line 2455 of file qmetaobjectbuilder.cpp.
void QMetaPropertyBuilder::setDesignable | ( | bool | value | ) |
Sets this property to designable if value is true.
Definition at line 2368 of file qmetaobjectbuilder.cpp.
void QMetaPropertyBuilder::setEditable | ( | bool | value | ) |
Sets this property to editable if value is true.
Definition at line 2404 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 2443 of file qmetaobjectbuilder.cpp.
void QMetaPropertyBuilder::setFinal | ( | bool | value | ) |
Sets the FINAL
flag on this property to value.
Definition at line 2467 of file qmetaobjectbuilder.cpp.
void QMetaPropertyBuilder::setNotifySignal | ( | const QMetaMethodBuilder & | value | ) |
Sets the notify signal associated with this property to value.
Definition at line 2118 of file qmetaobjectbuilder.cpp.
void QMetaPropertyBuilder::setReadable | ( | bool | value | ) |
Sets this property to readable if value is true.
Definition at line 2332 of file qmetaobjectbuilder.cpp.
Referenced by QMetaObjectBuilder::addProperty().
void QMetaPropertyBuilder::setResettable | ( | bool | value | ) |
Sets this property to resettable if value is true.
Definition at line 2356 of file qmetaobjectbuilder.cpp.
void QMetaPropertyBuilder::setScriptable | ( | bool | value | ) |
Sets this property to scriptable if value is true.
Definition at line 2380 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 2430 of file qmetaobjectbuilder.cpp.
void QMetaPropertyBuilder::setStored | ( | bool | value | ) |
Sets this property to storable if value is true.
Definition at line 2392 of file qmetaobjectbuilder.cpp.
void QMetaPropertyBuilder::setUser | ( | bool | value | ) |
Sets the USER
flag on this property to value.
Definition at line 2416 of file qmetaobjectbuilder.cpp.
void QMetaPropertyBuilder::setWritable | ( | bool | value | ) |
Sets this property to writable if value is true.
Definition at line 2344 of file qmetaobjectbuilder.cpp.
Referenced by QDeclarativeCompiler::buildDynamicMeta(), QDeclarativeCompiler::compileAlias(), VDMDelegateDataType::propertyCreated(), QDeclarativeVisualDataModelPartsMetaObject::propertyCreated(), and QDeclarativeBoundSignalParameters::QDeclarativeBoundSignalParameters().
QByteArray QMetaPropertyBuilder::type | ( | ) | const |
Returns the type associated with this property.
Definition at line 2076 of file qmetaobjectbuilder.cpp.
|
friend |
Definition at line 281 of file qmetaobjectbuilder_p.h.
|
private |
Definition at line 279 of file qmetaobjectbuilder_p.h.
|
private |
Definition at line 278 of file qmetaobjectbuilder_p.h.