mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +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
|
||||
obj, err := processClassType(node, nodename)
|
||||
if err != nil {
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user