genbindings/cabi: skip imports for other QPlatform* family classes

This commit is contained in:
mappu 2024-08-18 16:08:25 +12:00
parent 43e32085a1
commit 05404c308a

View File

@ -370,9 +370,12 @@ func emitBindingCpp(src *CppParsedHeader, filename string) (string, error) {
if ref[0] != 'Q' { if ref[0] != 'Q' {
continue continue
} }
if ref == "QPlatformPixmap" { if strings.HasPrefix(ref, "QPlatform") {
continue // This class doesn't have a <> version to include // e.g. QPlatformPixmap, QPlatformWindow, QPlatformScreen
// These classes don't have a <> version to include
continue
} }
ret.WriteString(`#include <` + ref + ">\n") ret.WriteString(`#include <` + ref + ">\n")
} }