mirror of
https://github.com/mappu/miqt.git
synced 2025-02-02 03:20:25 +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() {
|
if p.QPairOf() {
|
||||||
return ErrTooComplex // e.g. QGradientStop
|
return ErrTooComplex // e.g. QGradientStop
|
||||||
}
|
}
|
||||||
|
if p.QSetOf() {
|
||||||
|
return ErrTooComplex // e.g. QStateMachine
|
||||||
|
}
|
||||||
if t, ok := p.QListOf(); ok {
|
if t, ok := p.QListOf(); ok {
|
||||||
if err := CheckComplexity(t); err != nil { // e.g. QGradientStops is a QVector<> (OK) of QGradientStop (not OK)
|
if err := CheckComplexity(t); err != nil { // e.g. QGradientStops is a QVector<> (OK) of QGradientStop (not OK)
|
||||||
return err
|
return err
|
||||||
|
@ -39,6 +39,10 @@ func (p CppParameter) QPairOf() bool {
|
|||||||
return strings.HasPrefix(p.ParameterType, `QPair<`) // TODO support this
|
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 {
|
func (p CppParameter) IntType() bool {
|
||||||
switch p.ParameterType {
|
switch p.ParameterType {
|
||||||
case "int", "unsigned int", "uint",
|
case "int", "unsigned int", "uint",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user