![]() |
Qt 6.x
The Qt SDK
|
#include <qqmlboundsignal_p.h>
Public Member Functions | |
QQmlBoundSignal (QObject *target, int signal, QObject *owner, QQmlEngine *engine) | |
~QQmlBoundSignal () | |
void | removeFromObject () |
QQmlBoundSignalExpression * | expression () const |
Returns the signal expression. | |
void | takeExpression (QQmlBoundSignalExpression *) |
Sets the signal expression to e. | |
void | setEnabled (bool enabled) |
This property holds whether the item will emit signals. | |
![]() | |
QQmlNotifierEndpoint (Callback callback) | |
~QQmlNotifierEndpoint () | |
bool | isConnected () const |
bool | isConnected (QObject *source, int sourceSignal) const |
bool | isConnected (QQmlNotifier *) const |
void | connect (QObject *source, int sourceSignal, QQmlEngine *engine, bool doNotify=true) |
void | connect (QQmlNotifier *) |
void | disconnect () |
bool | isNotifying () const |
Returns true if a notify is in progress. | |
void | startNotifying (qintptr *originalSenderPtr) |
void | stopNotifying (qintptr *originalSenderPtr) |
void | cancelNotify () |
Cancel any notifies that are in progress. | |
int | signalIndex () const |
qintptr | sender () const |
void | setSender (qintptr sender) |
QObject * | senderAsObject () const |
QQmlNotifier * | senderAsNotifier () const |
Friends | |
class | QQmlPropertyPrivate |
class | QQmlData |
class | QQmlEngineDebugService |
void | QQmlBoundSignal_callback (QQmlNotifierEndpoint *, void **) |
Additional Inherited Members | |
![]() | |
enum | Callback { None = 0 , QQmlBoundSignal = 1 , QQmlJavaScriptExpressionGuard = 2 , QQmlVMEMetaObjectEndpoint = 3 , QQmlPropertyGuard = 4 } |
Definition at line 65 of file qqmlboundsignal_p.h.
QQmlBoundSignal::QQmlBoundSignal | ( | QObject * | target, |
int | signal, | ||
QObject * | owner, | ||
QQmlEngine * | engine | ||
) |
signal MUST be in the signal index range (see QObjectPrivate::signalIndex()). This is different from QMetaMethod::methodIndex().
Definition at line 212 of file qqmlboundsignal.cpp.
References QQmlNotifierEndpoint::connect(), engine, QQmlPropertyCache::originalClone(), and signal.
QQmlBoundSignal::~QQmlBoundSignal | ( | ) |
Definition at line 230 of file qqmlboundsignal.cpp.
References removeFromObject().
QQmlBoundSignalExpression * QQmlBoundSignal::expression | ( | ) | const |
Returns the signal expression.
Definition at line 261 of file qqmlboundsignal.cpp.
References QQmlRefPointer< T >::data().
Referenced by QQmlData::destroyed(), and QQmlPropertyPrivate::signalExpression().
void QQmlBoundSignal::removeFromObject | ( | ) |
Definition at line 248 of file qqmlboundsignal.cpp.
Referenced by QQmlBoundSignalDeleter::QQmlBoundSignalDeleter(), and ~QQmlBoundSignal().
void QQmlBoundSignal::setEnabled | ( | bool | enabled | ) |
This property holds whether the item will emit signals.
The QQmlBoundSignal callback will only emit a signal if this property is set to true.
By default, this property is true.
Definition at line 285 of file qqmlboundsignal.cpp.
References enabled.
void QQmlBoundSignal::takeExpression | ( | QQmlBoundSignalExpression * | e | ) |
Sets the signal expression to e.
The QQmlBoundSignal instance takes ownership of e (and does not add a reference).
Definition at line 271 of file qqmlboundsignal.cpp.
References QQmlRefPointer< T >::adopt(), e, and QQmlJavaScriptExpression::setNotifyOnValueChanged().
Referenced by QQmlPropertyPrivate::takeSignalExpression().
|
friend |
Definition at line 293 of file qqmlboundsignal.cpp.
|
friend |
Definition at line 81 of file qqmlboundsignal_p.h.
|
friend |
Definition at line 82 of file qqmlboundsignal_p.h.
|
friend |
Definition at line 80 of file qqmlboundsignal_p.h.