From e40098c5303e7af4b12c64093b120405c63fdf8d Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Tue, 24 Mar 2020 11:21:25 +0100 Subject: Add support for translation bindings on QProperty based properties Change-Id: I439653123cdc96df97a1801664655c9d28a8b9b5 Reviewed-by: Fabian Kosmale --- src/qml/qml/qqmlpropertybinding_p.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/qml/qml/qqmlpropertybinding_p.h') diff --git a/src/qml/qml/qqmlpropertybinding_p.h b/src/qml/qml/qqmlpropertybinding_p.h index 3bd6772413..5097f40e6f 100644 --- a/src/qml/qml/qqmlpropertybinding_p.h +++ b/src/qml/qml/qqmlpropertybinding_p.h @@ -61,8 +61,8 @@ QT_BEGIN_NAMESPACE -class QQmlPropertyBinding final : public QQmlJavaScriptExpression, - public QPropertyBindingPrivate +class QQmlPropertyBinding : public QQmlJavaScriptExpression, + public QPropertyBindingPrivate { public: static QUntypedPropertyBinding create(const QQmlPropertyData *pd, QV4::Function *function, @@ -78,6 +78,14 @@ private: void *dataPtr); }; +class QQmlTranslationPropertyBinding +{ +public: + static QUntypedPropertyBinding create(const QQmlPropertyData *pd, + const QQmlRefPointer &compilationUnit, + const QV4::CompiledData::Binding *binding); +}; + QT_END_NAMESPACE #endif // QQMLPROPERTYBINDING_P_H -- cgit v1.2.3