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
QQmlCppOnAssignmentHelper Struct Reference

#include <qqmlcpponassignment_p.h>

+ Collaboration diagram for QQmlCppOnAssignmentHelper:

Static Public Member Functions

static void set (QQmlPropertyValueInterceptor *interceptor, const QQmlProperty &property)
 
static void set (QQmlPropertyValueSource *valueSource, const QQmlProperty &property)
 

Detailed Description

Helper class that provides setTarget() functionality for both value interceptors and value sources.

Property value sources could be problematic because QQuickAbstractAnimation changes access specifier of QQmlPropertyValueSource::setTarget() to private (unintentionally?). This API allows to avoid manual casts to base types as the C++ compiler would implicitly cast derived classes in this case.

Definition at line 33 of file qqmlcpponassignment_p.h.

Member Function Documentation

◆ set() [1/2]

QT_BEGIN_NAMESPACE void QQmlCppOnAssignmentHelper::set ( QQmlPropertyValueInterceptor * interceptor,
const QQmlProperty & property )
static

Definition at line 8 of file qqmlcpponassignment.cpp.

References property.

◆ set() [2/2]

void QQmlCppOnAssignmentHelper::set ( QQmlPropertyValueSource * valueSource,
const QQmlProperty & property )
static

Definition at line 14 of file qqmlcpponassignment.cpp.

References property.


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