mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 17:08:38 +00:00
genbindings: blacklist QFooPrivate
This commit is contained in:
parent
e614944c71
commit
58eee48a5d
@ -51,6 +51,11 @@ func parseHeader(topLevel []interface{}) (*CppParsedHeader, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Also skip over any QFooPrivate classes
|
||||||
|
if nodename[0] == 'Q' && strings.HasSuffix(nodename, "Private") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
// Process the inner class definition
|
// Process the inner class definition
|
||||||
obj, err := processClassType(node, nodename)
|
obj, err := processClassType(node, nodename)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -268,6 +268,9 @@ func getReferencedTypes(src *CppParsedHeader) []string {
|
|||||||
if strings.HasPrefix(ft, "QList<") || strings.HasPrefix(ft, "QVector<") {
|
if strings.HasPrefix(ft, "QList<") || strings.HasPrefix(ft, "QVector<") {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if strings.HasSuffix(ft, "Private") { // qbrush.h finds QGradientPrivate
|
||||||
|
continue
|
||||||
|
}
|
||||||
if ft == "QRgb" {
|
if ft == "QRgb" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user