Skip to content

Commit 6540c8b

Browse files
usiemsmrbean-bremen
authored andcommitted
Workaround for missing enums from qnamespace.h in Qt 6.8
1 parent 34ef562 commit 6540c8b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

generator/qtscript_masterinclude.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@
119119

120120
#endif
121121

122+
// Workaround: Modify definition of QT_DEFINE_TAG to not include type definition in variable definition,
123+
// which is currently not handled by the generator parser - and also isn't needed for the wrappers, as far as I can see
124+
// Note: This fixes some missing enums from qnamespace.h in Qt 6.8
125+
#define QT_DEFINE_TAG(x) constexpr struct x##_t x;
122126

123127
// it seems this can be safely ignored (otherwise generator currently stumbles over use of noexcept):
124128
#define Q_DECLARE_SHARED(TYPE)

0 commit comments

Comments
 (0)