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
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.

◆ set() [2/2]

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

Definition at line 14 of file qqmlcpponassignment.cpp.


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