mirror of
https://github.com/mappu/miqt.git
synced 2025-03-14 19:30:23 +00:00
genbindings: more exceptions
This commit is contained in:
parent
e629117e54
commit
36994e6547
@ -349,6 +349,16 @@ nextMethod:
|
|||||||
continue 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)
|
ret.Methods = append(ret.Methods, mm)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -53,7 +53,9 @@ func ImportHeaderForClass(className string) bool {
|
|||||||
|
|
||||||
switch className {
|
switch className {
|
||||||
case "QGraphicsEffectSource", // e.g. qgraphicseffect.h
|
case "QGraphicsEffectSource", // e.g. qgraphicseffect.h
|
||||||
"QText": // e.g. qtextcursor.h
|
"QAbstractConcatenable", // qstringbuilder.h
|
||||||
|
"QTextEngine", // qtextlayout.h
|
||||||
|
"QText": // e.g. qtextcursor.h
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user