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
qqmlcppbinding_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
4#ifndef QQMLCPPBINDING_P_H
5#define QQMLCPPBINDING_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/qobject.h>
19#include <QtCore/qproperty.h>
20#include <QtCore/qurl.h>
21
22#include <QtQml/qqmlengine.h>
23#include <QtQml/qqmlcontext.h>
24#include <QtCore/qmetaobject.h>
25
26#include <private/qqmltypedata_p.h>
27#include <private/qqmlpropertybinding_p.h>
28#include <private/qqmlbinding_p.h>
29#include <private/qv4qmlcontext_p.h>
30#include <private/qqmlproperty_p.h>
31#include <private/qqmlbinding_p.h>
32
34
35struct Q_QML_EXPORT QQmlCppBinding
36{
37 // TODO: this might instead be put into the QQmlEngine or QQmlAnyBinding?
39 createBindingForBindable(const QV4::ExecutableCompilationUnit *unit, QObject *thisObject,
40 qsizetype functionIndex, QObject *bindingTarget, int metaPropertyIndex,
41 int valueTypePropertyIndex, const QString &propertyName);
42
43 static void createBindingForNonBindable(const QV4::ExecutableCompilationUnit *unit,
44 QObject *thisObject, qsizetype functionIndex,
45 QObject *bindingTarget, int metaPropertyIndex,
46 int valueTypePropertyIndex,
47 const QString &propertyName);
48
50 createTranslationBindingForBindable(const QQmlRefPointer<QV4::ExecutableCompilationUnit> &unit,
51 QObject *bindingTarget, int metaPropertyIndex,
52 const QQmlTranslation &translationData,
53 const QString &propertyName);
54
55 static void createTranslationBindingForNonBindable(
56 const QQmlRefPointer<QV4::ExecutableCompilationUnit> &unit,
57 const QQmlSourceLocation &location, const QQmlTranslation &translationData,
58 QObject *thisObject, QObject *bindingTarget, int metaPropertyIndex,
59 const QString &propertyName, int valueTypePropertyIndex);
60};
61
63
64#endif // QQMLCPPBINDING_P_H
\inmodule QtCore
Definition qobject.h:103
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
GLint location
ptrdiff_t qsizetype
Definition qtypes.h:165