From 1797cb542d8d0c1c794578a905b708877882966e Mon Sep 17 00:00:00 2001 From: velorums Date: Wed, 2 Apr 2025 20:26:41 +0200 Subject: [PATCH] genbindings: ignore QQmlV4Function, QJSEngine::handle, qmlAttachedProperties --- cmd/genbindings/config-allowlist.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cmd/genbindings/config-allowlist.go b/cmd/genbindings/config-allowlist.go index 60fce8f7..448194f2 100644 --- a/cmd/genbindings/config-allowlist.go +++ b/cmd/genbindings/config-allowlist.go @@ -199,6 +199,7 @@ func AllowClass(className string) bool { "QBrushDataPointerDeleter", // Qt 6 qbrush.h. Appears in header but cannot be linked "QPropertyBindingPrivatePtr", // Qt 6 qpropertyprivate.h. Appears in header but cannot be linked "QDeferredDeleteEvent", // Qt 6. Hidden/undocumented class in Qt 6.4, moved to private header in Qt 6.7. Intended for test use only + "QQmlV4Function", // Qt 6. Not part of the interface "QUntypedPropertyData::InheritsQUntypedPropertyData", // qpropertyprivate.h . Hidden/undocumented class in Qt 6.4, removed in 6.7 "____last____": @@ -347,6 +348,14 @@ func AllowMethod(className string, mm CppMethod) error { return ErrTooComplex } + if className == "QJSEngine" && mm.MethodName == "handle" { + return ErrTooComplex // Not part of the interface + } + + if mm.MethodName == "qmlAttachedProperties" && mm.IsStatic { + return ErrTooComplex // Callbacks that the attached object types must provide to QML + } + return nil // OK, allow }