mirror of
https://github.com/mappu/miqt.git
synced 2025-01-18 04:50:36 +00:00
genbindings: more exceptions
This commit is contained in:
parent
e629117e54
commit
36994e6547
@ -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:
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user