genbindings: ignore QQmlV4Function, QJSEngine::handle, qmlAttachedProperties

This commit is contained in:
velorums 2025-04-02 20:26:41 +02:00
parent f7f0d4a0b9
commit 1797cb542d

View File

@ -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
}