diff options
| author | Andrei Golubev <andrei.golubev@qt.io> | 2021-02-16 12:52:41 +0100 |
|---|---|---|
| committer | Andrei Golubev <andrei.golubev@qt.io> | 2021-12-17 08:57:27 +0100 |
| commit | e7ce5abf24f04d1b071343f07ca28b6a5d9ad4b9 (patch) | |
| tree | d02bcd3d19a7a2900311d34b8275fa6e9d376d7f /src/qml/qmltc/supportlibrary/qqmlcpponassignment.cpp | |
| parent | 6f2a1487b723206da5b4f363a0c9ddb6d7333367 (diff) | |
Use qmltc compiler prototype as a fallback implementation
Task-number: QTBUG-91927
Task-number: QTBUG-96041
Task-number: QTBUG-84368
Pick-to: 6.3
Change-Id: I47320b5f3ed8efff6fb234778df5fae5be5b64f2
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/qmltc/supportlibrary/qqmlcpponassignment.cpp')
| -rw-r--r-- | src/qml/qmltc/supportlibrary/qqmlcpponassignment.cpp | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/src/qml/qmltc/supportlibrary/qqmlcpponassignment.cpp b/src/qml/qmltc/supportlibrary/qqmlcpponassignment.cpp new file mode 100644 index 0000000000..a471ef2594 --- /dev/null +++ b/src/qml/qmltc/supportlibrary/qqmlcpponassignment.cpp @@ -0,0 +1,56 @@ +/**************************************************************************** +** +** Copyright (C) 2021 The Qt Company Ltd. +** Contact: https://www.qt.io/licensing/ +** +** This file is part of the QtQml module of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 3 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL3 included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 3 requirements +** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 2.0 or (at your option) the GNU General +** Public license version 3 or any later version approved by the KDE Free +** Qt Foundation. The licenses are as published by the Free Software +** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 +** included in the packaging of this file. Please review the following +** information to ensure the GNU General Public License requirements will +** be met: https://www.gnu.org/licenses/gpl-2.0.html and +** https://www.gnu.org/licenses/gpl-3.0.html. +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "qqmlcpponassignment_p.h" + +QT_BEGIN_NAMESPACE + +void QQmlCppOnAssignmentHelper::set(QQmlPropertyValueInterceptor *interceptor, + const QQmlProperty &property) +{ + interceptor->setTarget(property); +} + +void QQmlCppOnAssignmentHelper::set(QQmlPropertyValueSource *valueSource, + const QQmlProperty &property) +{ + valueSource->setTarget(property); +} + +QT_END_NAMESPACE |
