mirror of
https://github.com/mappu/miqt.git
synced 2025-04-17 11:00:23 +00:00
genbindings: ignore QQmlV4Function, QJSEngine::handle, qmlAttachedProperties
This commit is contained in:
parent
f7f0d4a0b9
commit
1797cb542d
@ -199,6 +199,7 @@ func AllowClass(className string) bool {
|
|||||||
"QBrushDataPointerDeleter", // Qt 6 qbrush.h. Appears in header but cannot be linked
|
"QBrushDataPointerDeleter", // Qt 6 qbrush.h. Appears in header but cannot be linked
|
||||||
"QPropertyBindingPrivatePtr", // Qt 6 qpropertyprivate.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
|
"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
|
"QUntypedPropertyData::InheritsQUntypedPropertyData", // qpropertyprivate.h . Hidden/undocumented class in Qt 6.4, removed in 6.7
|
||||||
"____last____":
|
"____last____":
|
||||||
@ -347,6 +348,14 @@ func AllowMethod(className string, mm CppMethod) error {
|
|||||||
return ErrTooComplex
|
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
|
return nil // OK, allow
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user