Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QQmlBindEntry Struct Reference
+ Collaboration diagram for QQmlBindEntry:

Public Member Functions

 QQmlBindEntry ()=default
 
 QQmlBindEntry (QQmlBindEntry &&other) noexcept
 
 QQmlBindEntry (const QQmlBindEntry &other)
 
 ~QQmlBindEntry ()
 
QQmlBindEntryoperator= (QQmlBindEntry &&other) noexcept
 
QQmlBindEntryoperator= (const QQmlBindEntry &other)
 
void validate (QQmlBind *q) const
 
void clearPrev ()
 
void setTarget (QQmlBind *q, const QQmlProperty &p)
 

Public Attributes

QQmlBindEntryContent current
 
QQmlBindEntryContent previous
 
QQmlProperty prop
 
QQmlBindEntryKind currentKind = QQmlBindEntryKind::None
 
QQmlBindEntryKind previousKind = QQmlBindEntryKind::None
 

Detailed Description

QQmlBindEntry holds two QQmlBindEntryContent members, along with their kinds. The \l current content is the value or binding the Binding element installs on the target if enabled (that is, if \l{when}). The \l previous content is what the target holds before the Binding element installs its binding or value. It is restored if !\l{when}. The \l prop member holds the target property.

Definition at line 155 of file qqmlbind.cpp.

Constructor & Destructor Documentation

◆ QQmlBindEntry() [1/3]

QQmlBindEntry::QQmlBindEntry ( )
default

◆ QQmlBindEntry() [2/3]

QQmlBindEntry::QQmlBindEntry ( QQmlBindEntry && other)
inlinenoexcept

Definition at line 158 of file qqmlbind.cpp.

References current, currentKind, other(), previous, previousKind, and QQmlBindEntryContent::set().

+ Here is the call graph for this function:

◆ QQmlBindEntry() [3/3]

QQmlBindEntry::QQmlBindEntry ( const QQmlBindEntry & other)
inline

Definition at line 164 of file qqmlbind.cpp.

References current, currentKind, other(), previous, previousKind, and QQmlBindEntryContent::set().

+ Here is the call graph for this function:

◆ ~QQmlBindEntry()

QQmlBindEntry::~QQmlBindEntry ( )
inline

Definition at line 171 of file qqmlbind.cpp.

References current, currentKind, QQmlBindEntryContent::destroy(), previous, and previousKind.

+ Here is the call graph for this function:

Member Function Documentation

◆ clearPrev()

void QQmlBindEntry::clearPrev ( )

Definition at line 1004 of file qqmlbind.cpp.

References QQmlBindEntryContent::destroy(), previous, and previousKind.

+ Here is the call graph for this function:

◆ operator=() [1/2]

QQmlBindEntry & QQmlBindEntry::operator= ( const QQmlBindEntry & other)
inline

Definition at line 187 of file qqmlbind.cpp.

References current, currentKind, other(), previous, previousKind, prop, and QQmlBindEntryContent::set().

+ Here is the call graph for this function:

◆ operator=() [2/2]

QQmlBindEntry & QQmlBindEntry::operator= ( QQmlBindEntry && other)
inlinenoexcept

Definition at line 177 of file qqmlbind.cpp.

References current, currentKind, other(), previous, previousKind, prop, and QQmlBindEntryContent::set().

+ Here is the call graph for this function:

◆ setTarget()

void QQmlBindEntry::setTarget ( QQmlBind * q,
const QQmlProperty & p )

Definition at line 687 of file qqmlbind.cpp.

References QObject::disconnect(), QQmlProperty::index(), QQmlProperty::object, prop, Q_UNLIKELY, signal, and SLOT.

+ Here is the call graph for this function:

◆ validate()

void QQmlBindEntry::validate ( QQmlBind * q) const

Definition at line 290 of file qqmlbind.cpp.

References QQmlProperty::isWritable(), QQmlProperty::name, QQmlProperty::object, QQmlMetaType::prettyTypeName(), prop, and qmlWarning().

+ Here is the call graph for this function:

Member Data Documentation

◆ current

QQmlBindEntryContent QQmlBindEntry::current

◆ currentKind

◆ previous

QQmlBindEntryContent QQmlBindEntry::previous

◆ previousKind

◆ prop

QQmlProperty QQmlBindEntry::prop

Definition at line 200 of file qqmlbind.cpp.

Referenced by operator=(), operator=(), setTarget(), QQmlBindPrivate::validate(), and validate().


The documentation for this struct was generated from the following file: