mirror of
https://github.com/mappu/miqt.git
synced 2025-01-22 06:30:38 +00:00
genbindings/qset: skip over these
This commit is contained in:
parent
fb538b0a3b
commit
d92e87b49d
@ -71,6 +71,9 @@ func CheckComplexity(p CppParameter) error {
|
||||
if p.QPairOf() {
|
||||
return ErrTooComplex // e.g. QGradientStop
|
||||
}
|
||||
if p.QSetOf() {
|
||||
return ErrTooComplex // e.g. QStateMachine
|
||||
}
|
||||
if t, ok := p.QListOf(); ok {
|
||||
if err := CheckComplexity(t); err != nil { // e.g. QGradientStops is a QVector<> (OK) of QGradientStop (not OK)
|
||||
return err
|
||||
|
@ -39,6 +39,10 @@ func (p CppParameter) QPairOf() bool {
|
||||
return strings.HasPrefix(p.ParameterType, `QPair<`) // TODO support this
|
||||
}
|
||||
|
||||
func (p CppParameter) QSetOf() bool {
|
||||
return strings.HasPrefix(p.ParameterType, `QSet<`) // TODO support this
|
||||
}
|
||||
|
||||
func (p CppParameter) IntType() bool {
|
||||
switch p.ParameterType {
|
||||
case "int", "unsigned int", "uint",
|
||||
|
Loading…
x
Reference in New Issue
Block a user