genbindings: blacklist QFooPrivate

This commit is contained in:
mappu 2024-08-17 14:09:51 +12:00
parent e614944c71
commit 58eee48a5d
2 changed files with 8 additions and 0 deletions

View File

@ -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
obj, err := processClassType(node, nodename)
if err != nil {

View File

@ -268,6 +268,9 @@ func getReferencedTypes(src *CppParsedHeader) []string {
if strings.HasPrefix(ft, "QList<") || strings.HasPrefix(ft, "QVector<") {
continue
}
if strings.HasSuffix(ft, "Private") { // qbrush.h finds QGradientPrivate
continue
}
if ft == "QRgb" {
continue
}