mirror of
https://github.com/mappu/miqt.git
synced 2024-12-23 01:18: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
|
// If there are hidden parameters, the type of the signal itself
|
||||||
// needs to include them
|
// 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"}
|
paramArgs := []string{"slot"}
|
||||||
paramArgDefs := []string{"void* cb"}
|
paramArgDefs := []string{"void* cb"}
|
||||||
|
Loading…
Reference in New Issue
Block a user