mirror of
https://github.com/mappu/miqt.git
synced 2024-12-23 01:18:37 +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' {
|
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")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user