mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 17:08:38 +00:00
genbindings/cabi: skip imports for other QPlatform* family classes
This commit is contained in:
parent
43e32085a1
commit
05404c308a
@ -370,9 +370,12 @@ func emitBindingCpp(src *CppParsedHeader, filename string) (string, error) {
|
||||
if ref[0] != 'Q' {
|
||||
continue
|
||||
}
|
||||
if ref == "QPlatformPixmap" {
|
||||
continue // This class doesn't have a <> version to include
|
||||
if strings.HasPrefix(ref, "QPlatform") {
|
||||
// e.g. QPlatformPixmap, QPlatformWindow, QPlatformScreen
|
||||
// These classes don't have a <> version to include
|
||||
continue
|
||||
}
|
||||
|
||||
ret.WriteString(`#include <` + ref + ">\n")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user