genbindings: hide ctors that take QFooPrivate-type parameters

This commit is contained in:
mappu 2024-08-10 12:54:14 +12:00
parent daa6252848
commit 55481316ed

View File

@ -137,6 +137,13 @@ nextMethod:
return CppClass{}, err return CppClass{}, err
} }
// Some QFoo constructors take a QFooPrivate
for _, p := range mm.Parameters {
if strings.Contains(p.ParameterType, "Private") {
log.Printf("Skipping constructor taking Private type")
continue nextMethod
}
}
ret.Ctors = append(ret.Ctors, mm) ret.Ctors = append(ret.Ctors, mm)