mirror of
https://github.com/bluszcz/cutego.git
synced 2024-09-28 13:15:17 +03:00
Fixing qtmoc not handling pointer to object in QT signal properly: the callback is returning the value of the pointer instead of the pointer
This commit is contained in:
parent
7f61353ee7
commit
959859c19a
1 changed files with 5 additions and 1 deletions
|
@ -364,7 +364,11 @@ func goFunctionBody(function *parser.Function) string {
|
|||
if !strings.HasSuffix(function.Name, "Changed") { //TODO: check if property instead
|
||||
fmt.Fprintf(bb, "qt.UnregisterTemp(unsafe.Pointer(uintptr(%v)))\n", parser.CleanName(p.Name, p.Value))
|
||||
}
|
||||
if strings.HasPrefix(p.PureGoType, "*") {
|
||||
fmt.Fprintf(bb, "%[1]vD = (%v)(%[1]vI)\n", parser.CleanName(p.Name, p.Value), p.PureGoType)
|
||||
} else {
|
||||
fmt.Fprintf(bb, "%[1]vD = (*(*%v)(%[1]vI))\n", parser.CleanName(p.Name, p.Value), p.PureGoType)
|
||||
}
|
||||
fmt.Fprint(bb, "}\n")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue