Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QQmlBoundSignal Class Reference

\inmodule QtQml More...

#include <qqmlboundsignal_p.h>

Inheritance diagram for QQmlBoundSignal:
Collaboration diagram for QQmlBoundSignal:

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.
Public Member Functions inherited from QQmlNotifierEndpoint
 QQmlNotifierEndpoint (Callback callback)
 ~QQmlNotifierEndpoint ()
bool isConnected () const
bool isConnected (QObject *source, int sourceSignal) const
bool isConnected (QQmlNotifier *) const
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
Callback callbackType () const
QQmlNotifierEndpoint * nextEndpoint () const
qintptr sender () const
void setSender (qintptr sender)
QObject * senderAsObject () const
QQmlNotifier * senderAsNotifier () const

Friends

class QQmlPropertyPrivate
class QQmlData
class QQmlEngineDebugService
class QQmlPreview::BindingPatchContext
void QQmlBoundSignal_callback (QQmlNotifierEndpoint *e, void **a)

Additional Inherited Members

Public Types inherited from QQmlNotifierEndpoint
enum  Callback {
  None = 0 , QQmlBoundSignal = 1 , QQmlJavaScriptExpressionGuard = 2 , QQmlVMEMetaObjectEndpoint = 3 ,
  QQmlUnbindableToUnbindableGuard = 4 , QQmlUnbindableToBindableGuard = 5 , QQmlDirtyReferenceObject = 6
}

Detailed Description

\inmodule QtQml

Definition at line 68 of file qqmlboundsignal_p.h.

Constructor & Destructor Documentation

◆ QQmlBoundSignal()

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 220 of file qqmlboundsignal.cpp.

◆ ~QQmlBoundSignal()

QQmlBoundSignal::~QQmlBoundSignal ( )

Definition at line 238 of file qqmlboundsignal.cpp.

Member Function Documentation

◆ expression()

QQmlBoundSignalExpression * QQmlBoundSignal::expression ( ) const

Returns the signal expression.

Definition at line 269 of file qqmlboundsignal.cpp.

◆ removeFromObject()

void QQmlBoundSignal::removeFromObject ( )

Definition at line 256 of file qqmlboundsignal.cpp.

◆ setEnabled()

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 293 of file qqmlboundsignal.cpp.

◆ takeExpression()

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 279 of file qqmlboundsignal.cpp.

◆ QQmlBoundSignal_callback

void QQmlBoundSignal_callback ( QQmlNotifierEndpoint * e,
void ** a )
friend

Definition at line 301 of file qqmlboundsignal.cpp.

◆ QQmlData

friend class QQmlData
friend

Definition at line 84 of file qqmlboundsignal_p.h.

◆ QQmlEngineDebugService

friend class QQmlEngineDebugService
friend

Definition at line 85 of file qqmlboundsignal_p.h.

◆ QQmlPreview::BindingPatchContext

friend class QQmlPreview::BindingPatchContext
friend

Definition at line 86 of file qqmlboundsignal_p.h.

◆ QQmlPropertyPrivate

friend class QQmlPropertyPrivate
friend

Definition at line 83 of file qqmlboundsignal_p.h.


The documentation for this class was generated from the following files: