mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +00:00
genbindings/signals: support connecting to a const signal
This commit is contained in:
parent
a4eb43c9fd
commit
f733ce29bc
@ -686,7 +686,7 @@ func emitBindingCpp(src *CppParsedHeader, filename string) (string, error) {
|
||||
|
||||
// If there are hidden parameters, the type of the signal itself
|
||||
// needs to include them
|
||||
exactSignal := `static_cast<void (` + c.ClassName + `::*)(` + emitParameterTypesCpp(m, true) + `)>(&` + c.ClassName + `::` + m.CppCallTarget() + `)`
|
||||
exactSignal := `static_cast<void (` + c.ClassName + `::*)(` + emitParameterTypesCpp(m, true) + `)` + ifv(m.IsConst, ` const`, ``) + `>(&` + c.ClassName + `::` + m.CppCallTarget() + `)`
|
||||
|
||||
paramArgs := []string{"slot"}
|
||||
paramArgDefs := []string{"void* cb"}
|
||||
|
Loading…
Reference in New Issue
Block a user