genbindings: more exceptions

This commit is contained in:
mappu 2024-08-22 19:20:34 +12:00
parent e629117e54
commit 36994e6547
2 changed files with 13 additions and 1 deletions

View File

@ -349,6 +349,16 @@ nextMethod:
continue nextMethod
}
if ret.ClassName == "QLockFile" && mm.MethodName == "getLockInfo" && len(mm.Parameters) == 3 && mm.Parameters[1].ParameterType == "QString" && mm.Parameters[1].Pointer {
log.Printf("Skipping method %q using complex return type by pointer argument", mm.MethodName) // TODO support this
continue nextMethod
}
if ret.ClassName == "QTextDecoder" && mm.MethodName == "toUnicode" && len(mm.Parameters) == 3 && mm.Parameters[0].ParameterType == "QString" && mm.Parameters[0].Pointer {
log.Printf("Skipping method %q using complex return type by pointer argument", mm.MethodName) // TODO support this
continue nextMethod
}
ret.Methods = append(ret.Methods, mm)
default:

View File

@ -53,7 +53,9 @@ func ImportHeaderForClass(className string) bool {
switch className {
case "QGraphicsEffectSource", // e.g. qgraphicseffect.h
"QText": // e.g. qtextcursor.h
"QAbstractConcatenable", // qstringbuilder.h
"QTextEngine", // qtextlayout.h
"QText": // e.g. qtextcursor.h
return false
}