mirror of
https://github.com/mappu/miqt.git
synced 2024-12-23 01:18:37 +00:00
genbindings: hide ctors that take QFooPrivate-type parameters
This commit is contained in:
parent
daa6252848
commit
55481316ed
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user