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
qqmlcpponassignment_p.h
Go to the documentation of this file.
1
// Copyright (C) 2021 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant
4
5
#
ifndef
QQMLCPPONASSIGNMENT_P_H
6
#
define
QQMLCPPONASSIGNMENT_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
private
/
qqmlpropertyvalueinterceptor_p
.
h
>
20
#
include
<
QtQml
/
qqmlpropertyvaluesource
.
h
>
21
22
QT_BEGIN_NAMESPACE
23
24
/*! \internal
25
26
Helper class that provides setTarget() functionality for both value
27
interceptors and value sources.
28
29
Property value sources could be problematic because QQuickAbstractAnimation
30
changes access specifier of QQmlPropertyValueSource::setTarget() to private
31
(unintentionally?). This API allows to avoid manual casts to base types as
32
the C++ compiler would implicitly cast derived classes in this case.
33
*/
34
struct
Q_QML_EXPORT
QQmlCppOnAssignmentHelper
35
{
36
// TODO: in theory, this API might just accept QObject * and int that would
37
// give the QMetaProperty. using the meta property, one could create
38
// QQmlProperty with a call to QQmlProperty::restore() (if there's an
39
// overload that takes QMetaProperty instead of QQmlPropertyData - which is
40
// also possible to add by using QQmlPropertyData::load())
41
static
void
set(QQmlPropertyValueInterceptor *interceptor,
const
QQmlProperty &property);
42
static
void
set(QQmlPropertyValueSource *valueSource,
const
QQmlProperty &property);
43
};
44
45
QT_END_NAMESPACE
46
47
#
endif
// QQMLCPPONASSIGNMENT_P_H
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
QQmlCppOnAssignmentHelper
Definition
qqmlcpponassignment_p.h:35
qtdeclarative
src
qml
qmltc
supportlibrary
qqmlcpponassignment_p.h
Generated on
for Qt by
1.16.1