mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 17:08:38 +00:00
genbindings: allow generating classes other than ^Q+
This commit is contained in:
parent
95e8ab2e02
commit
2a27c4e62f
@ -59,9 +59,6 @@ func ImportHeaderForClass(className string) bool {
|
||||
}
|
||||
|
||||
func AllowClass(className string) bool {
|
||||
if className[0] != 'Q' {
|
||||
return false
|
||||
}
|
||||
|
||||
if strings.HasSuffix(className, "Private") {
|
||||
return false
|
||||
|
@ -65,21 +65,13 @@ func (p *CppParameter) UnderlyingType() string {
|
||||
}
|
||||
|
||||
func (p CppParameter) QtClassType() bool {
|
||||
if p.ParameterType[0] != 'Q' {
|
||||
return false
|
||||
|
||||
// Maybe if it's an inner class
|
||||
if _, ok := KnownClassnames[p.ParameterType]; ok {
|
||||
return true
|
||||
}
|
||||
|
||||
if strings.Contains(p.ParameterType, `::`) {
|
||||
// Maybe if it's an inner class
|
||||
if _, ok := KnownClassnames[p.ParameterType]; ok {
|
||||
return true
|
||||
}
|
||||
// Int type
|
||||
return false
|
||||
}
|
||||
|
||||
// Passed all conditions
|
||||
return true
|
||||
return false
|
||||
}
|
||||
|
||||
func (p CppParameter) IsEnum() bool {
|
||||
|
Loading…
Reference in New Issue
Block a user