![]() |
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 | |
| QMetaMethodBuilder () | |
| int | index () const |
| Returns the index of this method within its QMetaObjectBuilder. | |
| QMetaMethod::MethodType | methodType () const |
| Returns the type of this method (signal, slot, method, or constructor). | |
| QByteArray | signature () const |
| Returns the signature of this method. | |
| QByteArray | returnType () const |
Returns the return type for this method; empty if the method's return type is {void}. | |
| void | setReturnType (const QByteArray &value) |
| Sets the return type for this method to value. | |
| QList< QByteArrayView > | parameterTypes () const |
| Returns the list of parameter types for this method. | |
| QList< QByteArray > | parameterNames () const |
| Returns the list of parameter names for this method. | |
| void | setParameterNames (const QList< QByteArray > &value) |
| Sets the list of parameter names for this method to value. | |
| QByteArray | tag () const |
| Returns the tag associated with this method. | |
| void | setTag (const QByteArray &value) |
| Sets the tag associated with this method to value. | |
| QMetaMethod::Access | access () const |
| Returns the access specification of this method (private, protected, or public). | |
| void | setAccess (QMetaMethod::Access value) |
| Sets the access specification of this method (private, protected, or public) to value. | |
| int | attributes () const |
| Returns the additional attributes for this method. | |
| void | setAttributes (int value) |
| Sets the additional attributes for this method to value. | |
| bool | isConst () const |
| Returns true if the method is const qualified. | |
| void | setConst (bool methodIsConst=true) |
| int | revision () const |
| Returns the revision of this method. | |
| void | setRevision (int revision) |
| Sets the revision of this method. | |
Friends | |
| class | QMetaObjectBuilder |
| class | QMetaPropertyBuilder |
\inmodule QtCore
The QMetaMethodBuilder class enables modifications to a method definition on a meta object builder.
Definition at line 145 of file qmetaobjectbuilder_p.h.
|
inline |
Definition at line 148 of file qmetaobjectbuilder_p.h.
| QMetaMethod::Access QMetaMethodBuilder::access | ( | ) | const |
Returns the access specification of this method (private, protected, or public).
The default value is QMetaMethod::Public for methods, slots, signals and constructors.
Definition at line 1690 of file qmetaobjectbuilder.cpp.
| int QMetaMethodBuilder::attributes | ( | ) | const |
Returns the additional attributes for this method.
Definition at line 1718 of file qmetaobjectbuilder.cpp.
| int QMetaMethodBuilder::index | ( | ) | const |
Returns the index of this method within its QMetaObjectBuilder.
Definition at line 1553 of file qmetaobjectbuilder.cpp.
| bool QMetaMethodBuilder::isConst | ( | ) | const |
Returns true if the method is const qualified.
Definition at line 1744 of file qmetaobjectbuilder.cpp.
| QMetaMethod::MethodType QMetaMethodBuilder::methodType | ( | ) | const |
Returns the type of this method (signal, slot, method, or constructor).
Definition at line 1564 of file qmetaobjectbuilder.cpp.
| QList< QByteArray > QMetaMethodBuilder::parameterNames | ( | ) | const |
Returns the list of parameter names for this method.
Definition at line 1635 of file qmetaobjectbuilder.cpp.
| QList< QByteArrayView > QMetaMethodBuilder::parameterTypes | ( | ) | const |
Returns the list of parameter types for this method.
Definition at line 1621 of file qmetaobjectbuilder.cpp.
| QByteArray QMetaMethodBuilder::returnType | ( | ) | const |
Returns the return type for this method; empty if the method's return type is {void}.
Definition at line 1593 of file qmetaobjectbuilder.cpp.
| int QMetaMethodBuilder::revision | ( | ) | const |
Returns the revision of this method.
Definition at line 1768 of file qmetaobjectbuilder.cpp.
| void QMetaMethodBuilder::setAccess | ( | QMetaMethod::Access | value | ) |
Sets the access specification of this method (private, protected, or public) to value.
If the method is a signal, this function will be ignored.
Definition at line 1706 of file qmetaobjectbuilder.cpp.
| void QMetaMethodBuilder::setAttributes | ( | int | value | ) |
Sets the additional attributes for this method to value.
Definition at line 1732 of file qmetaobjectbuilder.cpp.
| void QMetaMethodBuilder::setConst | ( | bool | methodIsConst = true | ) |
Definition at line 1752 of file qmetaobjectbuilder.cpp.
| void QMetaMethodBuilder::setParameterNames | ( | const QList< QByteArray > & | value | ) |
Sets the list of parameter names for this method to value.
Definition at line 1649 of file qmetaobjectbuilder.cpp.
| void QMetaMethodBuilder::setReturnType | ( | const QByteArray & | value | ) |
Sets the return type for this method to value.
If value is empty, then the method's return type is {void}. The value will be normalized before it is added to the method.
Definition at line 1609 of file qmetaobjectbuilder.cpp.
| void QMetaMethodBuilder::setRevision | ( | int | revision | ) |
Sets the revision of this method.
Definition at line 1781 of file qmetaobjectbuilder.cpp.
| void QMetaMethodBuilder::setTag | ( | const QByteArray & | value | ) |
Sets the tag associated with this method to value.
Definition at line 1676 of file qmetaobjectbuilder.cpp.
| QByteArray QMetaMethodBuilder::signature | ( | ) | const |
Returns the signature of this method.
Definition at line 1578 of file qmetaobjectbuilder.cpp.
| QByteArray QMetaMethodBuilder::tag | ( | ) | const |
Returns the tag associated with this method.
Definition at line 1662 of file qmetaobjectbuilder.cpp.
|
friend |
Definition at line 181 of file qmetaobjectbuilder_p.h.
|
friend |
Definition at line 182 of file qmetaobjectbuilder_p.h.