Skip to content

Commit 150d070

Browse files
usiemsjcfr
authored andcommitted
[Backport generator] Some more defines we don't need to parse
(cherry picked from commit MeVisLab/pythonqt@97f79c2)
1 parent 36b1f0f commit 150d070

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

generator/parser/rpp/pp-qt-configuration

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@
2929
// Qt6
3030
#define Q_NAMESPACE_EXPORT(...)
3131
#define Q_ENUM_NS(x)
32-
#define Q_FLAG_NS(x)
32+
#define Q_FLAG_NS(x)
33+
#define Q_MOC_INCLUDE(...)

generator/qtscript_masterinclude.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@
9595
#define Q_REVISION(v)
9696
#define Q_DECLARE_OPERATORS_FOR_FLAGS(x)
9797

98+
#include <QtCore/QMetaType>
99+
100+
// parse still stumbles over this declaration
101+
#define QT_DECL_METATYPE_EXTERN_TAGGED(TYPE, TAG, EXPORT)
102+
98103
#include <QtCore/QtCore>
99104
#include <QtGui/QtGui>
100105
#include <QtNetwork/QtNetwork>

0 commit comments

Comments
 (0)